Skip to content
Snippets Groups Projects
Commit e57f0e5f authored by Steven Murray's avatar Steven Murray
Browse files

Added -Wno-unused-function flag for gcc>=7

parent 0f303611
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,11 @@ if(CMAKE_COMPILER_IS_GNUCC)
set_property(SOURCE ${CTATAPESERVERDAEMON_LIBRARY_SRC}
PROPERTY COMPILE_FLAGS " -Wno-unused-local-typedefs")
endforeach(CTATAPESERVERDAEMON_LIBRARY_SRC)
# Add -Wno-unused-function compiler flag if using gcc version 7 or greater
if (GCC_VERSION VERSION_EQUAL 7 OR GCC_VERSION VERSION_GREATER 7)
set_property(SOURCE DataTransferSessionTest.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unused-function")
endif (GCC_VERSION VERSION_EQUAL 7 OR GCC_VERSION VERSION_GREATER 7)
endif(GCC_VERSION_GE_4_8_0)
endif(CMAKE_COMPILER_IS_GNUCC)
......@@ -93,6 +98,13 @@ add_library(ctatapeserverdaemonunittests SHARED
set_property(TARGET ctatapeserverdaemonunittests PROPERTY SOVERSION "${CTA_SOVERSION}")
set_property(TARGET ctatapeserverdaemonunittests PROPERTY VERSION "${CTA_LIBVERSION}")
if(CMAKE_COMPILER_IS_GNUCC)
# Add -Wno-unused-function compiler flag if using gcc version 7 or greater
if (GCC_VERSION VERSION_EQUAL 7 OR GCC_VERSION VERSION_GREATER 7)
set_property(SOURCE RecallReportPackerTest.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unused-function")
endif (GCC_VERSION VERSION_EQUAL 7 OR GCC_VERSION VERSION_GREATER 7)
endif(CMAKE_COMPILER_IS_GNUCC)
target_link_libraries(ctatapeserverdaemonunittests
ctamessagesutils)
#ctaschedulerutils
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment