forked from fmtlib/fmt
Compile with /W4 in MSVC
This commit is contained in:
@ -83,6 +83,8 @@ add_library(format ${FMT_SOURCES})
|
|||||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set_target_properties(format PROPERTIES COMPILE_FLAGS
|
set_target_properties(format PROPERTIES COMPILE_FLAGS
|
||||||
"-Wall -Wextra -Wshadow -pedantic")
|
"-Wall -Wextra -Wshadow -pedantic")
|
||||||
|
elseif (MSVC)
|
||||||
|
set_target_properties(format PROPERTIES COMPILE_FLAGS /W4)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# If FMT_EXTRA_TESTS is TRUE, then test compilation with both -std=c++11
|
# If FMT_EXTRA_TESTS is TRUE, then test compilation with both -std=c++11
|
||||||
|
Reference in New Issue
Block a user