From dfc249135f5abd4db9f052433743c1bb9549fdf6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 7 Feb 2024 21:51:59 +0100 Subject: [PATCH] build: Make plugin RPATH on Linux point to the plugins folder --- cmake/modules/ImHexPlugin.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/modules/ImHexPlugin.cmake b/cmake/modules/ImHexPlugin.cmake index a8243a8be..0431b5cb4 100644 --- a/cmake/modules/ImHexPlugin.cmake +++ b/cmake/modules/ImHexPlugin.cmake @@ -85,6 +85,8 @@ macro(add_imhex_plugin) # Fix rpath if (APPLE) set_target_properties(${IMHEX_PLUGIN_NAME} PROPERTIES INSTALL_RPATH "@executable_path/../Frameworks;@executable_path/plugins") + elseif (UNIX) + set_target_properties(${IMHEX_PLUGIN_NAME} PROPERTIES INSTALL_RPATH_USE_ORIGIN ON INSTALL_RPATH "$ORIGIN/") endif() endmacro()