Skip to content
Snippets Groups Projects
Commit 1ef16df4 authored by Andre Sailer's avatar Andre Sailer
Browse files

CMAKE: DD4hepConfig: make sure we use PackageConfig.cmake files where we must

parent 61d3b187
No related branches found
No related tags found
No related merge requests found
......@@ -60,18 +60,18 @@ if(DD4HEP_USE_GEANT4)
DD4HEP_SETUP_GEANT4_TARGETS()
endif()
FIND_DEPENDENCY(ROOT REQUIRED)
FIND_DEPENDENCY(ROOT REQUIRED CONFIG)
DD4HEP_SETUP_ROOT_TARGETS()
if(DD4HEP_USE_LCIO)
MESSAGE(STATUS "@CMAKE_PROJECT_NAME@ uses LCIO")
find_dependency(LCIO REQUIRED)
find_dependency(LCIO REQUIRED CONFIG)
DD4HEP_SETUP_LCIO_TARGETS()
endif()
if(DD4HEP_USE_TBB)
MESSAGE(STATUS "@CMAKE_PROJECT_NAME@ uses TBB")
find_dependency(TBB REQUIRED)
find_dependency(TBB REQUIRED CONFIG)
endif()
if(NOT CMAKE_PROJECT_NAME STREQUAL @CMAKE_PROJECT_NAME@)
......
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