mirror of
https://github.com/google/benchmark.git
synced 2024-12-27 13:00:36 +08:00
Changed MSVC warnings from Wall to W4 to avoid 10000+ warnings from stl/windows headers.
This commit is contained in:
parent
414941295e
commit
02440964e8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user