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
@@ -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/")
