From 63c11f349378f80a76b8b60bea76a52fb1a7c7ed Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Wed, 14 Dec 2016 16:32:37 +0100 Subject: [PATCH] fix library pathes in env scripts for macos - also set DD4HEP_LIBRARYPATH in dd4hep_add_library_path() - export ROOTSYS if it has not been set ( assumes path_to_ROOT/cmake ) --- cmake/thisdd4hep.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmake/thisdd4hep.sh b/cmake/thisdd4hep.sh index bf6867085..d9334db39 100644 --- a/cmake/thisdd4hep.sh +++ b/cmake/thisdd4hep.sh @@ -45,9 +45,11 @@ dd4hep_add_library_path() { if [ @USE_DYLD@ ]; then if [ ${DYLD_LIBRARY_PATH} ]; then - export DYLD_LIBRARY_PATH=${path_prefix}:$DYLD_LIBRARY_PATH; + export DYLD_LIBRARY_PATH=${path_prefix}:$DYLD_LIBRARY_PATH; + export DD4HEP_LIBRARY_PATH=${path_prefix}:$DD4HEP_LIBRARY_PATH; else export DYLD_LIBRARY_PATH=${path_prefix}; + export DD4HEP_LIBRARY_PATH=${path_prefix}; fi; else if [ ${LD_LIBRARY_PATH} ]; then @@ -63,6 +65,10 @@ dd4hep_parse_this ${BASH_ARGV[0]} DD4hep; # # These 3 are the main configuration variables: ROOT, Geant4 and XercesC # --> LCIO & Co. are handled elsewhere! + +if [ -z $ROOTSYS ]; then + export ROOTSYS=`dirname @ROOT_DIR@` +fi; export Geant4_DIR=@Geant4_DIR@; export XERCESCINSTALL=@XERCESC_ROOT_DIR@; # -- GitLab