diff --git a/CMakeLists.txt b/CMakeLists.txt index 09567b23b22f4eea30f006dad4c7410f7d22c365..50d167c28ca01695e40dd467adabe147bc2ffe55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,7 +155,13 @@ endif() if(DD4HEP_USE_EDM4HEP) find_package(EDM4HEP REQUIRED) - find_package(podio REQUIRED) + # we need podio with Frame support (>=0.16.3) + # podio is "SameMajorVersion" compatible + find_package(podio 0.16.3) # this will not find 1.0 and newer + if(NOT podio_FOUND) + # we try to find a newer version now + find_package(podio 1.0 REQUIRED) + endif() # DD4HEP_SETUP_EDM4HEP_TARGETS() endif()