Skip to content

Commit 1306568

Browse files
committed
replacement for InfoLoggerConfig.cmake.in, as no substitutions were done
1 parent 076ef97 commit 1306568

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

cmake/InfoLoggerConfig.cmake

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
include("${CMAKE_CURRENT_LIST_DIR}/InfoLoggerTargets.cmake")
1+
# get path to this file
2+
get_filename_component(INFOLOGGER_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
3+
message(STATUS "InfoLogger found - using cmake targets in ${INFOLOGGER_CMAKE_DIR}")
4+
5+
# dependencies for clients using the library
6+
# we now package a standalone version of libInfoLogger
7+
# so the lines below are not needed - kept for reference
8+
# include(CMakeFindDependencyMacro)
9+
# find_dependency(Common REQUIRED)
10+
11+
# declare InfoLogger target
12+
if(NOT TARGET AliceO2::InfoLogger)
13+
include("${INFOLOGGER_CMAKE_DIR}/InfoLoggerTargets.cmake")
14+
endif()
15+
16+
# declare variable for backward compatibility in client programs not using cmake targets
17+
set(InfoLogger_LIBRARIES AliceO2::InfoLogger)

0 commit comments

Comments
 (0)