From bebaa91925d53c43581619ee40db6f1e0c4a0baa Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 22 Aug 2024 10:50:25 +0200 Subject: [PATCH] Bootstrap the LCIO target in case it is not present --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12c61ed..0643947 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,15 @@ INCLUDE( ilcsoft_default_settings ) # required packages FIND_PACKAGE( LCIO REQUIRED ) +# Shim for older LCIO versions +if(NOT TARGET LCIO::lcio) + add_library(LCIO::lcio INTERFACE IMPORTED GLOBAL) + set_target_properties(LCIO::lcio + PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${LCIO_INCLUDE_DIRS}" + INTERFACE_LINK_LIBRARIES "${LCIO_LIBRARIES}" + ) +endif() FIND_PACKAGE( GEAR REQUIRED ) # export Marlin_DEPENDS_INCLUDE_DIRS to MarlinConfig.cmake