Prefer if ( MSVC )

This commit is contained in:
Martin Moene 2017-07-23 09:36:53 +02:00
parent 46bf7605f4
commit 8726e70cf9

View File

@ -290,7 +290,7 @@ if (NOT NO_SELFTEST)
target_compile_options( SelfTest PRIVATE -Wall -Wextra )
target_compile_options( Benchmark PRIVATE -Wall -Wextra )
endif()
if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
if ( MSVC )
target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX )
target_compile_options( Benchmark PRIVATE /W4 )
endif()