fix(xswiftbus): Set correct RUNPATH

This commit is contained in:
Lars Toenning
2024-08-11 22:16:02 +02:00
parent 349b670c3e
commit 98496fedd6
2 changed files with 4 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ else()
set(LIBEVENT_CORE_ABS "${dir}/${LIBEVENT_CORE_ABS}")
endif()
string(REGEX MATCH "libevent_core-2.1.so.[1-9]+" SOMAJOR_VERSION ${LIBEVENT_CORE_ABS})
set_target_properties(externals_event PROPERTIES IMPORTED_SONAME ${SOMAJOR_VERSION})
set_target_properties(externals_event PROPERTIES IMPORTED_LOCATION ${LIBEVENT_CORE_ABS})
endif()

View File

@@ -158,6 +158,8 @@ target_compile_definitions(xswiftbus PUBLIC XSWIFTBUS_VERSION="${swift_version_m
if(APPLE)
set_target_properties(xswiftbus PROPERTIES INSTALL_RPATH @loader_path/)
elseif(UNIX)
set_target_properties(xswiftbus PROPERTIES INSTALL_RPATH $ORIGIN)
endif()
include(${PROJECT_SOURCE_DIR}/cmake/xswiftbus_tools.cmake)