forked from weaselab/conflict-set
Remove -Wpedantic for gcc
This commit is contained in:
+3
-6
@@ -92,14 +92,11 @@ if(NOT APPLE AND CMAKE_OBJCOPY)
|
||||
$<TARGET_FILE:${PROJECT_NAME}_static>)
|
||||
endif()
|
||||
|
||||
set(TEST_FLAGS -Wall -Wextra -Wpedantic -Wunreachable-code -UNDEBUG)
|
||||
set(TEST_FLAGS -Wall -Wextra -Wunreachable-code -UNDEBUG)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
list(APPEND TEST_FLAGS -Wno-gnu-anonymous-struct -Wno-nested-anon-types)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
list(APPEND TEST_FLAGS -fms-extensions)
|
||||
list(APPEND TEST_FLAGS -Wpedantic -Wno-gnu-anonymous-struct
|
||||
-Wno-nested-anon-types)
|
||||
endif()
|
||||
|
||||
include(CTest)
|
||||
|
||||
Reference in New Issue
Block a user