diff options
author | Andrew Stitcher <astitcher@apache.org> | 2015-08-21 23:08:54 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2015-08-21 23:08:54 +0000 |
commit | 507553d663cce9764387b7135f99e2c47ebfcbee (patch) | |
tree | 09751c39c228dfcb14e709c70b21824e25d2718e | |
parent | 4f0f4b600767cb657cab6efb68be3f980dbd1fce (diff) | |
download | qpid-python-507553d663cce9764387b7135f99e2c47ebfcbee.tar.gz |
NO-JIRA: Fix RPATH setting for rpm builds which set absolute paths
- specifically matters for the LIB_INSTALL_DIR which is also used
to set the RPATH in some circumstances.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1697068 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/BuildInstallSettings.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/cpp/BuildInstallSettings.cmake b/qpid/cpp/BuildInstallSettings.cmake index b502854cc9..afef898771 100644 --- a/qpid/cpp/BuildInstallSettings.cmake +++ b/qpid/cpp/BuildInstallSettings.cmake @@ -128,7 +128,7 @@ if (UNIX) endif() endif() - # In rpm builds the build sets some variables: + # In rpm builds the build sets some variables with absolute paths: # CMAKE_INSTALL_PREFIX - this is a standard cmake variable # INCLUDE_INSTALL_DIR # LIB_INSTALL_DIR @@ -181,8 +181,9 @@ if (UNIX) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) # The RPATH to be used when installing, but only if it's not a system directory - list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" isSystemDir) + set_absolute_install_path (QPID_LIB_DIR ${QPID_INSTALL_LIBDIR}) + list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${QPID_LIB_DIR}" isSystemDir) if("${isSystemDir}" STREQUAL "-1") - set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}") + set(CMAKE_INSTALL_RPATH "${QPID_LIB_DIR}") endif("${isSystemDir}" STREQUAL "-1") endif (UNIX) |