mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +00:00
refactor(cmake): drop legacy export option and public test includes
- EXPORT_LINK_INTERFACE_LIBRARIES has no effect with policy CMP0022 - Test targets are executables, so their include directories are private Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,7 +74,7 @@ function(add_testsuite suitename)
|
||||
add_dependencies(${target} ${testsuite_DEPENDS})
|
||||
endif()
|
||||
if(testsuite_INCLUDES)
|
||||
target_include_directories(${target} PUBLIC ${testsuite_INCLUDES})
|
||||
target_include_directories(${target} PRIVATE ${testsuite_INCLUDES})
|
||||
endif()
|
||||
if(testsuite_DEFINITIONS)
|
||||
target_compile_definitions("${target}" PUBLIC ${testsuite_DEFINITIONS})
|
||||
@@ -123,7 +123,7 @@ function(add_testhelper helpername)
|
||||
add_dependencies(${target} ${testhelper_DEPENDS})
|
||||
endif()
|
||||
if(testhelper_INCLUDES)
|
||||
target_include_directories(${target} PUBLIC ${testhelper_INCLUDES})
|
||||
target_include_directories(${target} PRIVATE ${testhelper_INCLUDES})
|
||||
endif()
|
||||
if(testhelper_DEFINITIONS)
|
||||
target_compile_definitions(${target} PUBLIC ${testhelper_DEFINITIONS})
|
||||
@@ -154,7 +154,7 @@ function(add_testlib libname)
|
||||
add_dependencies(${target} ${testlib_DEPENDS})
|
||||
endif()
|
||||
if(testlib_INCLUDES)
|
||||
target_include_directories(${target} PUBLIC ${testlib_INCLUDES})
|
||||
target_include_directories(${target} PRIVATE ${testlib_INCLUDES})
|
||||
endif()
|
||||
if(testlib_HIDDEN)
|
||||
set_target_properties(${target} PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
||||
|
||||
Reference in New Issue
Block a user