diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-05-24 19:40:35 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-05-24 19:40:35 +0200 |
| commit | 9f0577d43804ea943ad5e7899cef70ea6dff59f0 (patch) | |
| tree | 85e790aa3c6d2fb3294e8b8daf49f3ee093895fa | |
| parent | d770197500a48fce1ba443760e87581e28939998 (diff) | |
CMakeLists.txt: Assign install rpath
Otherwise, when installing the project, all targets have their runtime
path removed and therefore the `dino` executable cannot be started from
the installation prefix.
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b5734c45..fd1f3740 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ else () set(PROJECT_VERSION ${VERSION_FULL}) endif () +include(GNUInstallDirs) +set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_RPATH} ${CMAKE_INSTALL_FULL_LIBDIR}) +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + # Prepare Plugins set(DEFAULT_PLUGINS omemo;openpgp;http-files;ice;rtp) foreach (plugin ${DEFAULT_PLUGINS}) |
