Skip to content
Snippets Groups Projects
Commit 42f64d71 authored by Valentin Volkl's avatar Valentin Volkl
Browse files

fixes for compilation with clang12

parent 656ce73a
No related branches found
No related tags found
No related merge requests found
build.*
spack*
./Generator/output/
./Generator/options/
......@@ -5,6 +5,7 @@ gaudi_add_module(TrackInspect
LINK DataHelperLib
Gaudi::GaudiKernel
EDM4HEP::edm4hep
k4FWCore::k4FWCore
${ROOT_LIBRARIES}
${CLHEP_LIBRARIES}
)
......
......@@ -125,7 +125,7 @@ const std::map<std::string,double>& GeomSvc::getDetParameters(std::string name){
if(m_detParameters.find(name)!=m_detParameters.end()) return m_detParameters[name];
else{
char message[200];
sprintf(message,"GeomSvc has not the parameter set named %s", name);
sprintf(message,"GeomSvc has not the parameter set named %s", name.c_str());
throw std::runtime_error(message);
}
}
......@@ -136,7 +136,7 @@ double GeomSvc::getDetParameter(std::string set_name, std::string par_name){
if(it->second.find(par_name)!=it->second.end()) return it->second[par_name];
}
char message[200];
sprintf(message,"GeomSvc has not the parameter named %s in set %s", par_name, set_name);
sprintf(message,"GeomSvc has not the parameter named %s in set %s", par_name.c_str(), set_name.c_str());
throw std::runtime_error(message);
}
......
......@@ -19,7 +19,6 @@
#include <gearimpl/ZPlanarParametersImpl.h>
#include <gearimpl/GearParametersImpl.h>
class dd4hep::DetElement;
class TGeoNode;
class GeomSvc: public extends<Service, IGeomSvc> {
......
......@@ -19,6 +19,7 @@ gaudi_add_module(RecGenfitAlg
EDM4HEP::edm4hep
EDM4HEP::edm4hepDict
GenFit::genfit2
k4FWCore::k4FWCore
)
target_include_directories(RecGenfitAlg PUBLIC
......
......@@ -15,6 +15,7 @@ gaudi_add_module(Tracking
${LCIO_LIBRARIES}
DetSegmentation
EDM4HEP::edm4hep EDM4HEP::edm4hepDict
k4FWCore::k4FWCore
)
target_include_directories(Tracking PUBLIC
......
......@@ -4,7 +4,6 @@
#include "GearSvc/IGearSvc.h"
#include <GaudiKernel/Service.h>
#include "DD4hep/Detector.h"
class dd4hep::DetElement;
class TGeoNode;
class GearSvc : public extends<Service, IGearSvc>
......
......@@ -8,6 +8,7 @@ gaudi_add_module(DetSimAna
${DD4hep_COMPONENT_LIBRARIES}
Gaudi::GaudiKernel
EDM4HEP::edm4hep EDM4HEP::edm4hepDict
k4FWCore::k4FWCore
)
install(TARGETS DetSimAna
......
......@@ -20,6 +20,7 @@ gaudi_add_module(DetSimCore
Gaudi::GaudiKernel
${Geant4_LIBRARIES}
${DD4hep_COMPONENT_LIBRARIES}
k4FWCore::k4FWCore
EDM4HEP::edm4hep EDM4HEP::edm4hepDict
)
......
......@@ -72,6 +72,8 @@ gaudi_add_library(KalDetLib
${GEAR_LIBRARIES}
EDM4HEP::edm4hep EDM4HEP::edm4hepDict
${DD4hep_COMPONENT_LIBRARIES}
GenFit::genfit2
)
install(TARGETS KalDetLib
......
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