Skip to content

Commit

Permalink
CMake: allow finding newer versions of podio
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer authored Jun 24, 2024
1 parent 8b8735e commit a31cb8a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a31cb8a

Please sign in to comment.