Skip to content
Snippets Groups Projects
Commit c61b3e5e authored by Markus Frank's avatar Markus Frank
Browse files

Another try to fix nightly examples

parent feec9d47
No related branches found
No related tags found
No related merge requests found
......@@ -63,14 +63,7 @@ int initAClick(const char* command=0) {
std::string clhep = make_str(gSystem->Getenv("CLHEP_DIR"));
std::string libs = " -L"+rootsys+"/lib";
std::string inc = " -I"+dd4hep+"/examples/DDG4/examples" +
" -I"+dd4hep +
" -I"+dd4hep+"/include" +
" -Wno-shadow -g -O0";
if ( ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0) )
libs += " -lCore -lMathCore";
else
libs += " -lCore -lCint -lMathCore";
libs += " -pthread -lm -ldl -rdynamic";
" -I"+dd4hep + " -I"+dd4hep+"/include"
libs += " -L"+dd4hep+"/lib -lDDCore -lDDG4 -lDDSegmentation";
if ( !geant4.empty() ) {
inc += " -I"+geant4+"/include/Geant4";
......@@ -81,6 +74,10 @@ int initAClick(const char* command=0) {
// if CLHEP is not included in Geant4...
inc += " -I"+clhep+"/include";
}
inc += " -Wno-shadow -g -O0";
if ( ROOT_VERSION_CODE < ROOT_VERSION(6,0,0) )
libs += " -lCint";
libs += " -lCore -lMathCore -pthread -lm -ldl -rdynamic";
gSystem->AddIncludePath(inc.c_str());
gSystem->AddLinkedLibs(libs.c_str());
std::cout << "+++ Includes: " << gSystem->GetIncludePath() << std::endl;
......
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