From 3b2e1d4b551ca5ec8a367e13891b19ed3b6906dd Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Thu, 9 May 2024 11:26:20 -0300 Subject: [PATCH] More testings --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1f8a8d..32968ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,13 +49,12 @@ set(GDCM_INSTALL_PACKAGE_DIR ${SKBUILD_NULL_DIR}) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) set(CMAKE_SKIP_BUILD_RPATH FALSE) set(CMAKE_POSITION_INDEPENDENT_CODE ON) -set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) if(APPLE) - set(CMAKE_INSTALL_RPATH "@loader_path") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -undefined dynamic_lookup -liconv") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup -liconv") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -undefined dynamic_lookup -liconv") elseif(LINUX) + set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) set(CMAKE_INSTALL_RPATH "\$ORIGIN") endif()