cmake: Allow RPATH to include files outside the build tree

This commit is contained in:
f4exb 2019-05-31 10:52:41 +02:00
parent 1eeb334a8f
commit 034c299e4a
1 changed files with 2 additions and 0 deletions

View File

@ -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