From d2347c98b7095eb25a87d4d7ab281e42ef206786 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 2 Jul 2025 17:07:31 -0400 Subject: [WARP] Fix rpath for warp UI on linux Was not able to find the core plugin in the plugins directory --- plugins/warp/ui/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins') 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 () -- cgit v1.3.1