Skip to content
Snippets Groups Projects
Commit 4f44d724 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by Andre Sailer
Browse files

DDG4/CMakeLists.txt: add an explicit dependency on DD4HEP_HEPMC3_COMPRESSION_SUPPORT

parent 94a45851
No related branches found
No related tags found
No related merge requests found
......@@ -117,18 +117,19 @@ IF(DD4HEP_USE_HEPMC3)
set(DDG4HepMC3_USES DD4hep::DDG4 Geant4::Interface ${HEPMC3_LIBRARIES})
set(DDG4HepMC3_DEFINITIONS)
IF(ZLIB_FOUND)
list(APPEND DDG4HepMC3_USES ZLIB::ZLIB)
list(APPEND DDG4HepMC3_DEFINITIONS HEPMC3_USE_COMPRESSION HEPMC3_Z_SUPPORT=1)
ENDIF()
IF(LIBLZMA_FOUND)
list(APPEND DDG4HepMC3_INCLUDES ${LIBLZMA_INCLUDE_DIRS})
list(APPEND DDG4HepMC3_USES ${LIBLZMA_LIBRARIES})
list(APPEND DDG4HepMC3_DEFINITIONS HEPMC3_USE_COMPRESSION HEPMC3_LZMA_SUPPORT=1)
ENDIF()
IF(BZIP2_FOUND)
list(APPEND DDG4HepMC3_USES BZip2::BZip2)
list(APPEND DDG4HepMC3_DEFINITIONS HEPMC3_USE_COMPRESSION HEPMC3_BZ2_SUPPORT=1)
IF(DD4HEP_HEPMC3_COMPRESSION_SUPPORT)
IF(ZLIB_FOUND)
list(APPEND DDG4HepMC3_USES ZLIB::ZLIB)
list(APPEND DDG4HepMC3_DEFINITIONS HEPMC3_USE_COMPRESSION HEPMC3_Z_SUPPORT=1)
ENDIF()
IF(LIBLZMA_FOUND)
list(APPEND DDG4HepMC3_USES LibLZMA::LibLZMA)
list(APPEND DDG4HepMC3_DEFINITIONS HEPMC3_USE_COMPRESSION HEPMC3_LZMA_SUPPORT=1)
ENDIF()
IF(BZIP2_FOUND)
list(APPEND DDG4HepMC3_USES BZip2::BZip2)
list(APPEND DDG4HepMC3_DEFINITIONS HEPMC3_USE_COMPRESSION HEPMC3_BZ2_SUPPORT=1)
ENDIF()
ENDIF()
dd4hep_add_plugin(DDG4HepMC3
......
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