Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakallabeth <akallabeth@posteo.net>2021-03-02 21:37:20 +0300
committerakallabeth <akallabeth@posteo.net>2021-03-02 21:37:20 +0300
commitc635904c4f3d18295f6c94deff4e9c370168e681 (patch)
tree430f47a0cff58f29b40d3589ed3df0e192cb2d6e /CMakeLists.txt
parentc3e31742ef575fa289ff63aced1b495ac7b36714 (diff)
Added RPATH configuration to fix loading of plugins
If installed to non standard paths allows the plugins to load dependent libraries from the binary RPATH as well as system paths.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 542a75d86..d9cba0cbe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -481,6 +481,15 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/buildflags.h.in
${CMAKE_CURRENT_BINARY_DIR}/generated/buildflags.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/generated/)
+# Configure RPATH
+set(CMAKE_SKIP_BUILD_RPATH FALSE)
+set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+set(CMAKE_BUILD_RPATH_USE_ORIGIN TRUE)
+if (NOT FREEBSD)
+ set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\$ORIGIN/..")
+endif()
+
if(GTK3_FOUND)
#pkg_check_modules(gio REQUIRED gio-2.0)
#pkg_check_modules(gio-unix REQUIRED gio-unix-2.0)