From f21b3881034524b312921b286081ddfdbe45cff5 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 23 Jun 2024 11:59:53 -0400 Subject: [PATCH] CMakeLists.txt: extend podio major versions range (#84) 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 ``` --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f98c37f..71c8166 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)