mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-13 09:36:32 +00:00
Compile with /W4 in MSVC
This commit is contained in:
parent
3a5573ac6e
commit
9c75d0ccf7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user