From 0ab5086e3b65e9a15763232a919275ce51dd28c0 Mon Sep 17 00:00:00 2001 From: Pavel Kalugin Date: Fri, 15 Dec 2023 15:51:51 +0300 Subject: [PATCH] CMake: change xcpp linkage scope to PRIVATE Previously the linkage was PUBLIC, which caused xcpp to link to the already existing libxeus-clang-repl.so instead of the just built one. Signed-off-by: Pavel Kalugin --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f22292f1..c649bc39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,7 +209,7 @@ set_target_properties(xcpp PROPERTIES ENABLE_EXPORTS 1 CXX_STANDARD ${CMAKE_CXX_STANDARD} ) -target_link_libraries(xcpp PUBLIC xeus-clang-repl pthread Python::Python) +target_link_libraries(xcpp PRIVATE xeus-clang-repl pthread Python::Python) #TODO: We may be need sse RPATH #set_target_properties(xcpp clangCppInterOp PROPERTIES