From 2d84da611a006cc5f8892d6e68640c923352933e Mon Sep 17 00:00:00 2001
From: Thomas Madlener <thomas.madlener@cern.ch>
Date: Thu, 22 Sep 2022 10:25:57 +0200
Subject: [PATCH] Make sure to set RPATH correctly in the cmake config to make
 ODD usable within newer Key4hep installations

---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d1bd74..8d0cd46 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,7 @@ endif()
 
 # Find the DD4Hep package with corresponding library
 find_package(DD4hep 1.21 REQUIRED CONFIG COMPONENTS DDCore DDDetectors)
+dd4hep_set_compiler_flags()
 
 # Add the main factory 
 add_subdirectory(factory)
-- 
GitLab