Skip to content

Commit

Permalink
Fix tests not finding the xerces library because the RPATH wasnt set
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jun 25, 2023
1 parent d6674f1 commit bf0e316
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ option(INSTALL_COMPACT_FILES "Copy compact files to install area" OFF)


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 REQUIRED COMPONENTS Geom GenVector)
Expand Down

0 comments on commit bf0e316

Please sign in to comment.