Permalink
Browse files

Build: Always use correct `RPATH` on macOS

After this commit the installed version of `kdb` works without any
changes to the library path on macOS, even if we specify a custom
install location via `CMAKE_INSTALL_PREFIX`.

This update fixes #1577.
  • Loading branch information...
sanssecours committed Aug 19, 2017
1 parent 4e84b0f commit 922c47263d53b34a7ed7cbb69c0c25a9ea942ef3
Showing with 1 addition and 0 deletions.
  1. +1 −0 CMakeLists.txt
View
@@ -7,6 +7,7 @@ project (Elektra)
#fix macOS RPATH issues
set(CMAKE_MACOSX_RPATH 1)
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
#additional modules for loading libraries
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

0 comments on commit 922c472

Please sign in to comment.