Skip to content
Snippets Groups Projects
Commit 5c4683a2 authored by Paul Gessinger's avatar Paul Gessinger Committed by Moritz Kiehn
Browse files

Use DDCore target directly

The DDCORE_LIBRARY variable seems not to be filled conistently (maybe on
newer versions?) This is more idiomatic in CMake anyway.
parent 7222b682
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,13 @@ target_include_directories(
${DD4hep_INCLUDE_DIRS})
target_link_libraries(
ActsDD4hepPlugin
PUBLIC ActsCore ActsTGeoPlugin ${DD4hep_DDCORE_LIBRARY})
PUBLIC ActsCore ActsTGeoPlugin)
if(${DD4hep_VERSION} VERSION_LESS 1.11)
target_link_libraries(ActsDD4hepPlugin PUBLIC ${DD4hep_DDCORE_LIBRARY})
else()
target_link_libraries(ActsDD4hepPlugin PUBLIC DD4hep::DDCore)
endif()
install(
TARGETS ActsDD4hepPlugin
......
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