1 2 3 4 5 6 7 8 9 10
--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -861,7 +861,6 @@ if(NOT MSVC) endif() endif() endif() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Werror=vla") if(USE_SANITIZE_UB) check_cxx_compiler_flag(-fsanitize=undefined COMPILER_SUPPORTS_UNDEFINED_BEHAVIOR_SANITIZER)