1
0
mirror of synced 2024-09-24 11:38:26 +02:00

build: Make plugin RPATH on Linux point to the plugins folder

This commit is contained in:
WerWolv 2024-02-07 21:51:59 +01:00
parent c3d755a3e2
commit dfc249135f

View File

@ -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()