disable /WX on MSVC

This commit is contained in:
jadebenn 2024-04-08 20:18:46 -05:00
parent 24d3bc0ce6
commit 7eae64f8a6

View File

@ -253,7 +253,7 @@ endif()
# Set warning flags # Set warning flags
if(MSVC) if(MSVC)
add_compile_options("/WX") add_compile_options("/W4")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
add_compile_options("-Wuninitialized" "-Wold-style-cast" "-Werror") add_compile_options("-Wuninitialized" "-Wold-style-cast" "-Werror")
else() else()