From 3756217dca387a373c09a4869f45615f8ece83c7 Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Mon, 19 Jan 2026 11:55:45 +0100 Subject: [PATCH] Link against `Python3::Module` instead of `Python3::Python`, which according to the documentation is meant for embedding the python interpreter. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e5fecaa38..f967467a3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -77,7 +77,7 @@ SET(core_headers PODIO_ADD_LIB_AND_DICT(podio "${core_headers}" "${core_sources}" selection.xml) target_compile_options(podio PRIVATE -pthread) -target_link_libraries(podio PRIVATE Python3::Python) +target_link_libraries(podio PRIVATE Python3::Module) # For Frame.h if (ROOT_VERSION VERSION_LESS 6.36) target_compile_definitions(podio PUBLIC PODIO_ROOT_OLDER_6_36=1)