Skip to content

Commit

Permalink
Check on the version of DD4hep to use or not DCH_info.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jan 23, 2025
1 parent ed7ffd6 commit 45ed4c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ if(NOT K4GEO_USE_LCIO)
message(STATUS "Use of LCIO is DISABLED, some detectors that depend on LCIO will not be built: ${lcio_sources}")
endif()

if(${DD4hep_VERSION} VERSION_LESS 1.29)
set(FILES_DEPENDINGON_DCH_INFO_H "DriftChamber_o1_v02.cpp" )
list(FILTER sources EXCLUDE REGEX "${FILES_DEPENDINGON_DCH_INFO_H}")
message(WARNING [[Subdetector ${FILES_DEPENDINGON_DCH_INFO_H} will not be built
because the current version of DD4hep does not ship with
the header file DDRec/DCH_info.h]])
endif()

find_package(EDM4HEP)
file(GLOB G4sources
./plugins/TPCSDAction.cpp
Expand Down

0 comments on commit 45ed4c3

Please sign in to comment.