From 9f0577d43804ea943ad5e7899cef70ea6dff59f0 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 24 May 2025 19:40:35 +0200 Subject: 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. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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}) -- cgit v1.2.3