Compile with /W4 in MSVC

This commit is contained in:
vitaut 2015-03-28 13:21:49 -07:00
parent 3a5573ac6e
commit 9c75d0ccf7

View File

@ -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