Do not reset RPATH on installed libraries

Otherwise qtkeychain doesn't find Qt any more; it needs to keep
the RPATH set when compiling it.
This commit is contained in:
Giuseppe D'Angelo 2016-11-14 09:45:59 +01:00
parent c1bf584629
commit c750d74c33
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,7 @@ set_target_properties(${QTKEYCHAIN_TARGET_NAME} PROPERTIES
SOVERSION ${QTKEYCHAIN_SOVERSION}
MACOSX_RPATH 1
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
INSTALL_RPATH_USE_LINK_PATH TRUE
)
install(FILES keychain.h ${CMAKE_CURRENT_BINARY_DIR}/qkeychain_export.h