mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +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)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user