Fixed CMake generation of MSVC warning levels

This commit is contained in:
philsquared 2017-03-06 08:35:14 +00:00
parent 68e7fdce20
commit 6fea473414

View File

@ -253,7 +253,7 @@ if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" )
target_compile_options( Benchmark PRIVATE -Wall -Wextra )
endif()
if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
target_compile_options( SelfTest PRIVATE /W44265 )
target_compile_options( SelfTest PRIVATE /W4 /w44265 )
target_compile_options( Benchmark PRIVATE /W4 )
endif()