Skip to content

Commit

Permalink
CMakeLists.txt: extend podio major versions range (#84)
Browse files Browse the repository at this point in the history
This is to support PODIO v01-00

Fixes:
```
CMake Error at CMakeLists.txt:31 (find_package):
  Could not find a configuration file for package "podio" that is compatible
  with requested version "0.15".

  The following configuration files were considered but not accepted:

    /lib/cmake/podio/podioConfig.cmake, version: 1.0.0
```
  • Loading branch information
veprbl authored Jun 23, 2024
1 parent 3b49755 commit f21b388
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ endif(APPLE)

include(GNUInstallDirs)

find_package(podio 0.15 REQUIRED)
find_package(podio 0.15)
if(NOT podio_FOUND)
find_package(podio 1.0 REQUIRED)
endif()
include_directories(${podio_INCLUDE_DIR})

find_package(EDM4HEP 0.10.3 REQUIRED)
Expand Down

0 comments on commit f21b388

Please sign in to comment.