From 5d4fd639004644ee87fb045bbfb544ac3eed4000 Mon Sep 17 00:00:00 2001 From: BrieucF Date: Tue, 19 Dec 2023 19:59:32 +0100 Subject: [PATCH] Fix a CMake error --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ffd4e85..b1677cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)