diff --git a/cmake/event/CMakeLists.txt b/cmake/event/CMakeLists.txt index e2e1349c8..2cc386941 100644 --- a/cmake/event/CMakeLists.txt +++ b/cmake/event/CMakeLists.txt @@ -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() diff --git a/src/xswiftbus/CMakeLists.txt b/src/xswiftbus/CMakeLists.txt index 50e45d39c..dbf8925ad 100644 --- a/src/xswiftbus/CMakeLists.txt +++ b/src/xswiftbus/CMakeLists.txt @@ -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)