From e6368a252ab1fa0adb0eff02ba8ab74714ebf53a Mon Sep 17 00:00:00 2001 From: Dmitry Vedenko Date: Tue, 27 Jul 2021 19:03:16 +0300 Subject: [PATCH] Use relative RPATH during installation --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 014c3dfcb..fccbb5553 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -328,7 +328,7 @@ set( _EXEDIR "${_DEST}" ) # Setup RPATH handling set( CMAKE_BUILD_RPATH "${_DEST}/${_PKGLIB}" ) set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE ) -set( CMAKE_INSTALL_RPATH "${_PREFIX}/${_PKGLIB}" ) +set( CMAKE_INSTALL_RPATH "$ORIGIN/../${_PKGLIB}" ) set( CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE ) # Adjust them for the Mac