From 9c75d0ccf7f79ba8d145547d299d39d1cf3e480f Mon Sep 17 00:00:00 2001 From: vitaut Date: Sat, 28 Mar 2015 13:21:49 -0700 Subject: [PATCH] Compile with /W4 in MSVC --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c51acd63..63b6baef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,8 @@ add_library(format ${FMT_SOURCES}) if (CMAKE_COMPILER_IS_GNUCXX) set_target_properties(format PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Wshadow -pedantic") +elseif (MSVC) + set_target_properties(format PROPERTIES COMPILE_FLAGS /W4) endif () # If FMT_EXTRA_TESTS is TRUE, then test compilation with both -std=c++11