diff --git a/DDG4/examples/initAClick.C b/DDG4/examples/initAClick.C index f7efad0913cb4c797f2abeb386e9b7c9498a2c1e..a52b6d81690b7f90b9112696e1075e3e2de8797f 100644 --- a/DDG4/examples/initAClick.C +++ b/DDG4/examples/initAClick.C @@ -62,7 +62,7 @@ int initAClick(const char* command=0) { std::string clhep = make_str(gSystem->Getenv("CLHEP_ROOT_DIR")); std::string defs = ""; std::string libs = " -L"+rootsys+"/lib"; - std::string inc = " -I"+dd4hep+"/examples/DDG4/examples -I"+dd4hep + " -I"+dd4hep+"/include"; + std::string inc = " -I"+dd4hep+"/examples/DDG4/examples -I"+dd4hep + " -I"+dd4hep+"/include "; std::string ext = "so"; if ( !geant4.empty() ) { inc += " -I"+geant4+"/include/Geant4"; diff --git a/examples/LHeD/scripts/initAClick.C b/examples/LHeD/scripts/initAClick.C index b0495e11c90fb814f0ea0bc83c538f6ba0f94b6e..a441f5cb03af849773ebe74b802002eff2471e61 100644 --- a/examples/LHeD/scripts/initAClick.C +++ b/examples/LHeD/scripts/initAClick.C @@ -62,7 +62,13 @@ int initAClick(const char* command=0) { std::string clhep = make_str(gSystem->Getenv("CLHEP_ROOT_DIR")); std::string defs = ""; std::string libs = " -L"+rootsys+"/lib"; - std::string inc = " -I"+dd4hep+"/examples/LHeD/scripts -I"+dd4hep + " -I"+dd4hep+"/include"+clhep+"/include -I"+geant4+"/include"; + std::string inc = ""; + inc += " -I" + dd4hep + "/examples/LHeD/scripts "; + inc += " -I" + dd4hep; + inc += " -I" + dd4hep + "/include "; + inc += " -I" + clhep + "/include "; + inc += " -I" + geant4 + "/include "; + std::string ext = "so"; if ( !geant4.empty() ) { inc += " -I"+geant4+"/include/Geant4";