From 96a71d4e29d9496eed6ebeaf6efbf6c8935fe559 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Tue, 10 Sep 2024 16:13:18 +0200 Subject: [PATCH] Inject the EDM4hep version into podio internals --- edm4hep/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edm4hep/CMakeLists.txt b/edm4hep/CMakeLists.txt index 6102985d1..8c2d6b5a4 100644 --- a/edm4hep/CMakeLists.txt +++ b/edm4hep/CMakeLists.txt @@ -4,7 +4,9 @@ set(extra_code extra_code/CovMatrixCommon.ipp) # For now unconditionally generate all the code that is supported by the # installed podio PODIO_GENERATE_DATAMODEL(edm4hep ../edm4hep.yaml headers sources - IO_BACKEND_HANDLERS ${PODIO_IO_HANDLERS} DEPENDS ${extra_code} + IO_BACKEND_HANDLERS ${PODIO_IO_HANDLERS} + DEPENDS ${extra_code} + VERSION ${${PROJECT_NAME}_VERSION} ) PODIO_ADD_DATAMODEL_CORE_LIB(edm4hep "${headers}" "${sources}")