From 320b2648ec96552251e737723508c2d5777ece77 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 2 May 2024 12:08:18 +0000 Subject: [PATCH] -rpath Signed-off-by: Alexandra --- lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index e95215e5a..c24b98350 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -131,7 +131,7 @@ endif() add_library(villas SHARED ${LIB_SRC}) target_include_directories(villas PUBLIC ${INCLUDE_DIRS}) target_link_libraries(villas PUBLIC ${LIBRARIES}) -target_link_libraries(villas PRIVATE -Wl,--whole-archive ${WHOLE_ARCHIVES} -Wl,--no-whole-archive) +target_link_libraries(villas PRIVATE -Wl,-rpath,--whole-archive ${WHOLE_ARCHIVES} -Wl,-rpath,--no-whole-archive) set_target_properties(villas PROPERTIES VERSION ${CMAKE_PROJECT_VERSION}