Skip to content

Commit

Permalink
Bootstrap the LCIO target in case it is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Aug 22, 2024
1 parent 76c3ea6 commit bebaa91
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bebaa91

Please sign in to comment.