diff --git a/GaudiExamples/CMakeLists.txt b/GaudiExamples/CMakeLists.txt index 3bc01f503f28f5a0d2db6b7bfd46558c74aca5a4..9635ebd5e831c6dcfea5c2e662ef1ae6cb79292a 100644 --- a/GaudiExamples/CMakeLists.txt +++ b/GaudiExamples/CMakeLists.txt @@ -132,19 +132,19 @@ if(GAUDI_USE_AIDA) src/IO/WriteHandleAlg.cpp src/RandomNumber/RandomNumberAlg.cpp) target_link_libraries(GaudiExamples PRIVATE AIDA::aida) + if(GAUDI_USE_CLHEP) + target_sources(GaudiExamples PRIVATE src/TupleEx/TupleAlg2.cpp + src/TupleEx/TupleAlg3.cpp + src/TupleEx/TupleAlg.cpp + src/TupleEx/TupleDef.cpp) + target_link_libraries(GaudiExamples PRIVATE CLHEP::CLHEP) + endif() endif() if(GAUDI_USE_HEPPDT) target_sources(GaudiExamples PRIVATE src/PartProp/GaudiPPS.cpp src/PartProp/PartPropExa.cpp) target_link_libraries(GaudiExamples PRIVATE HepPDT::heppdt) endif() -if(GAUDI_USE_CLHEP) - target_sources(GaudiExamples PRIVATE src/TupleEx/TupleAlg2.cpp - src/TupleEx/TupleAlg3.cpp - src/TupleEx/TupleAlg.cpp - src/TupleEx/TupleDef.cpp) - target_link_libraries(GaudiExamples PRIVATE CLHEP::CLHEP) -endif() if(TARGET RootCnvLib) target_sources(GaudiExamples PRIVATE src/MultiInput/DumpAddress.cpp src/MultiInput/MIReadAlg.cpp