From 8726e70cf9f5ffd20266db23f5b42060782284d8 Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Sun, 23 Jul 2017 09:36:53 +0200 Subject: [PATCH] Prefer if ( MSVC ) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()