Dep/CppFormat: Fix cmake error when using GCC
(cherry picked from commit 3eaace1508e818c4f651eaaf8792cc60a766890f)
This commit is contained in:
1 parent
6757ef2217
commit
a7f78d9295
1 file changed
+5
-5
@@ -3,11 +3,6 @@ include(CheckSymbolExists)
|
||||
|
||||
set(FMT_SOURCES format.cc format.h)
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set_target_properties(format PROPERTIES COMPILE_FLAGS
|
||||
"-Wall -Wextra -Wshadow -pedantic")
|
||||
endif ()
|
||||
|
||||
# Use variadic templates
|
||||
add_definitions(-DFMT_VARIADIC_TEMPLATES=1)
|
||||
|
||||
@@ -33,3 +28,8 @@ if (HAVE_OPEN)
|
||||
endif ()
|
||||
|
||||
add_library(format STATIC ${FMT_SOURCES})
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set_target_properties(format PROPERTIES COMPILE_FLAGS
|
||||
"-Wall -Wextra -Wshadow -pedantic")
|
||||
endif ()
|
||||
Reference in new issue
Block a user