From 034c299e4af36696e242a733fa1e85608c044647 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 31 May 2019 10:52:41 +0200 Subject: [PATCH] cmake: Allow RPATH to include files outside the build tree --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9c774a8f..5e9ad84c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -232,6 +232,8 @@ endif() set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}" CACHE PATH "Library Install RPath" FORCE) +# Allow RPATH to files outside the build tree +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) # force full path set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}" CACHE