diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2014-02-03 12:02:03 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2014-02-03 12:02:03 +0100 |
commit | b359e851fee883f33ec85aeb2425ae0c2a7b2408 (patch) | |
tree | 93d6cba6ede3e486d7be060cbd97d628adbc18ea /src/CMakeLists.txt | |
parent | dcb24fbb5c9b35b36b7e66da6b5cbce6ff150ed4 (diff) | |
download | fork-ledger-b359e851fee883f33ec85aeb2425ae0c2a7b2408.tar.gz fork-ledger-b359e851fee883f33ec85aeb2425ae0c2a7b2408.tar.bz2 fork-ledger-b359e851fee883f33ec85aeb2425ae0c2a7b2408.zip |
Correctly set runtime path on Linux on install
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b34e1c52..7bf7aad6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -252,11 +252,11 @@ add_pch_rule(${PROJECT_BINARY_DIR}/system.hh LEDGER_SOURCES main.cc global.cc) include(GNUInstallDirs) if(BUILD_LIBRARY) + set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") add_library(libledger SHARED ${LEDGER_SOURCES} ${PROJECT_SOURCE_DIR}/lib/sha1.cpp) add_ledger_library_dependencies(libledger) set_target_properties(libledger PROPERTIES PREFIX "" - #INSTALL_NAME_DIR "@executable_path/../lib" INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" VERSION ${Ledger_VERSION_MAJOR} SOVERSION ${Ledger_VERSION_MAJOR}) |