commit | df6d35e72861e0689289755501c1caa141ddca46 | [log] [tgz] |
---|---|---|
author | Thomas Klausner <tk@giga.or.at> | Sun Sep 03 12:03:57 2017 +0200 |
committer | Thomas Klausner <tk@giga.or.at> | Sun Sep 03 12:03:57 2017 +0200 |
tree | eacd637167f8ce7f8b6b9276b6a281d38b11b0d5 | |
parent | 4fba7af60267214d752510b27b9d612effe5fa25 [diff] |
cmake: explicit rpath handling
diff --git a/CMakeLists.txt b/CMakeLists.txt index d1f6b7a..fa9763c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -115,6 +115,10 @@ ADD_DEFINITIONS("-DHAVE_CONFIG_H") +# rpath handling: use rpath in installed binaries +SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") +SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + # Targets ADD_SUBDIRECTORY(lib) ADD_SUBDIRECTORY(man)