Skip to content

Commit

Permalink
Don't request a version of podio in find_package(podio) (key4hep#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Jun 25, 2024
1 parent f56bdd9 commit d6e72d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ project(k4FWCore)

find_package(ROOT COMPONENTS RIO Tree REQUIRED)
find_package(Gaudi REQUIRED)
find_package(podio 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(EDM4HEP REQUIRED)

include(GNUInstallDirs)
Expand Down
2 changes: 1 addition & 1 deletion k4FWCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
# Package: k4FWCore
################################################################################

find_package(podio 0.16.3 REQUIRED)
find_package(podio REQUIRED)
find_package(EDM4HEP)

gaudi_install(SCRIPTS)
Expand Down

0 comments on commit d6e72d1

Please sign in to comment.