diff --git a/CMakeLists.txt b/CMakeLists.txt index d1edd83e..ab556951 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()