mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Compile with /W4 in MSVC
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user