Skip to content

Commit

Permalink
Make sure to not continue without any podio
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 17, 2024
1 parent 9b69494 commit a5cdc28
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ project(k4FWCore)

find_package(ROOT COMPONENTS RIO Tree REQUIRED)
find_package(Gaudi REQUIRED)
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()
find_package(podio 0.16.3 QUIET) # 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)
else()
message(WARNING "Found podio < 1.0. This should still work, but consider moving to a newer version")
endif()

if(NOT podio_FOUND)
message(FATAL_ERROR "Could not find a suitable version of podio")
endif()

find_package(EDM4HEP REQUIRED)

include(cmake/Key4hepConfig.cmake)
Expand Down

0 comments on commit a5cdc28

Please sign in to comment.