CMake 3.24 intorduced CMAKE_COMPILE_WARNING_AS_ERROR, with support for compilers we currently support (and others).
This could be used to replace FLAMEGPU_WARNINGS_AS_ERRORS, preferring the cmake versions of variables (we could either deprecate the current version or just remove it).
https://cmake.org/cmake/help/v3.24/variable/CMAKE_COMPILE_WARNING_AS_ERROR.html#variable:CMAKE_COMPILE_WARNING_AS_ERROR