mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
fix(xswiftbus): Set correct RUNPATH
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user