From 5211548c0d8e485cdae966c7a1191472c69c2e87 Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Fri, 11 Dec 2015 09:16:03 +0000
Subject: [PATCH]  - export CLHEP_DIR if Geant4 was built with external CLHEP

---
 cmake/thisdd4hep.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmake/thisdd4hep.sh b/cmake/thisdd4hep.sh
index 6095e76a7..8ce2bb4af 100644
--- a/cmake/thisdd4hep.sh
+++ b/cmake/thisdd4hep.sh
@@ -82,6 +82,7 @@ if [ ${Geant4_DIR} ]; then
     #---- if geant4 was built with external CLHEP we have to extend the dynamic search path
     if [ @GEANT4_USE_CLHEP@ ] ; then
 	dd4hep_add_library_path @CLHEP_LIBRARY_PATH@;
+	export CLHEP_DIR=@CLHEP_DIR@
     fi;
     dd4hep_add_library_path ${G4LIB_DIR};
     unset G4ENV_INIT;
-- 
GitLab