Skip to content

Commit

Permalink
Fix a CMake error
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF committed Dec 19, 2023
1 parent 02cf300 commit 5d4fd63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ set(PACKAGE_VERSION_PATCH 3)
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")

# dependencies
# For some reason, the find_package with DD4hep must be the first one
find_package(DD4hep REQUIRED COMPONENTS DDRec DDG4 DDParsers)
# dd4hep_set_compiler_flags() expects DD4hep_SET_RPATH to be set to ON
# otherwise it will not set the rpath when installing
set(DD4HEP_SET_RPATH ON)
dd4hep_set_compiler_flags()
find_package(ROOT COMPONENTS RIO Tree MathCore)
find_package(EDM4HEP)
find_package(k4FWCore)
find_package(Gaudi)
find_package(DD4hep)
#---------------------------------------------------------------

include(GNUInstallDirs)
Expand Down

0 comments on commit 5d4fd63

Please sign in to comment.