From 55a85d3996ab9e0af4f1f4f2921fa1a14d669452 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Wed, 18 Oct 2023 10:47:39 -0500 Subject: [PATCH] fix: target_link_libraries Co-authored-by: Dmitry Kalinkin --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50982e51c..2dbac1997 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,7 +125,7 @@ if (${USE_PODIO}) find_package(podio REQUIRED) add_compile_definitions(HAVE_PODIO) include_directories(SYSTEM ${podio_INCLUDE_DIR}) - link_libraries(podio::podio podio::podioRootIO) + target_link_libraries(jana2_shared_lib podio::podio podio::podioRootIO) endif() #---------