From e15b53b2243efc71d5b37a91d5041dae58eb6916 Mon Sep 17 00:00:00 2001 From: Naios Date: Tue, 21 Jul 2015 17:47:02 +0200 Subject: [PATCH] fix msvc compiler flags --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68f5b12..1e39c7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ if(MSVC) # ... endif() - add_definitions(-Wall -Wextra) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4") else() # Check C++14 Compiler support.