summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-02 17:07:31 -0400
committerMason Reed <mason@vector35.com>2025-07-02 17:25:04 -0400
commitd2347c98b7095eb25a87d4d7ab281e42ef206786 (patch)
treecc268be8d0c43c9285470774199bc48677ccf845 /plugins
parent5b4feea0223638e5589a5e80f4f6cf219783bde1 (diff)
[WARP] Fix rpath for warp UI on linux
Was not able to find the core plugin in the plugins directory
Diffstat (limited to 'plugins')
-rw-r--r--plugins/warp/ui/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/warp/ui/CMakeLists.txt b/plugins/warp/ui/CMakeLists.txt
index ebfaddc4..e266452c 100644
--- a/plugins/warp/ui/CMakeLists.txt
+++ b/plugins/warp/ui/CMakeLists.txt
@@ -43,9 +43,15 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
if (BN_INTERNAL_BUILD)
ui_plugin_rpath(${PROJECT_NAME})
+ if (UNIX)
+ # A hack to get the ui plugin to find the warp core plugin.
+ set_target_properties(${PROJECT_NAME} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH "$ORIGIN")
+ endif()
+
set_target_properties(${PROJECT_NAME} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR})
else ()
+ # TODO: There is a possibility that linux will fail to load the correct core warp.
bn_install_plugin(${PROJECT_NAME})
endif ()