Skip to content
Snippets Groups Projects
Commit 63c11f34 authored by Frank Gaede's avatar Frank Gaede Committed by Frank Gaede
Browse files

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 )
parent dae26383
No related branches found
No related tags found
No related merge requests found
......@@ -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@;
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment