Skip to content

Commit

Permalink
initAClick: add -L flag for root library location in key4hep stack
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Apr 26, 2023
1 parent 1cbf1af commit 84f2e45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DDG4/examples/initAClick.C
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ int initAClick(const char* command=0) {
std::string dd4hep = make_str(gSystem->Getenv("DD4hepINSTALL"));
std::string clhep = make_str(gSystem->Getenv("CLHEP_ROOT_DIR"));
std::string defs = "";
std::string libs = " -L"+rootsys+"/lib";
// lib/root is used in spack (key4hep)
std::string libs = " -L"+rootsys+"/lib" + " -L"+rootsys+"/lib/root";
std::string inc = " -I"+dd4hep+"/examples/DDG4/examples -I"+dd4hep + " -I"+dd4hep+"/include ";
std::string ext = "so";
if ( !geant4.empty() ) {
Expand Down
3 changes: 2 additions & 1 deletion examples/LHeD/scripts/initAClick.C
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ int initAClick(const char* command=0) {
std::string dd4hep = make_str(gSystem->Getenv("DD4hepINSTALL"));
std::string clhep = make_str(gSystem->Getenv("CLHEP_ROOT_DIR"));
std::string defs = "";
std::string libs = " -L"+rootsys+"/lib";
// lib/root is used in spack (key4hep)
std::string libs = " -L"+rootsys+"/lib" + " -L"+rootsys+"/lib/root";
std::string inc = "";
inc += " -I" + dd4hep + "/examples/LHeD/scripts ";
inc += " -I" + dd4hep;
Expand Down

0 comments on commit 84f2e45

Please sign in to comment.