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

Added -Wno-unused-function to necessary scheduler files when gcc>=7

parent 7e7e51ad
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,15 @@ add_library (ctaschedulerunittests SHARED
set_property(TARGET ctaschedulerunittests PROPERTY SOVERSION "${CTA_SOVERSION}")
set_property(TARGET ctaschedulerunittests 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 OStoreDB/OStoreDBTest.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unused-function")
set_property(SOURCE SchedulerDatabaseTest.cpp APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unused-function")
set_property(SOURCE SchedulerTest.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 (ctaschedulerunittests
ctascheduler)
......
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