Commit 02440964 by Anton Danielsson

Changed MSVC warnings from Wall to W4 to avoid 10000+ warnings from stl/windows headers.

parent 41494129
......@@ -31,7 +31,11 @@ if (NOT HAVE_CXX_FLAG_STD_CXX11)
endif()
# Turn compiler warnings up to 11
add_cxx_compiler_flag(-Wall)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_cxx_compiler_flag(-W4)
else()
add_cxx_compiler_flag(-Wall)
endif()
add_cxx_compiler_flag(-Wextra)
add_cxx_compiler_flag(-Wshadow)
add_cxx_compiler_flag(-Werror RELEASE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment