mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +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}")
|
set(LIBEVENT_CORE_ABS "${dir}/${LIBEVENT_CORE_ABS}")
|
||||||
endif()
|
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})
|
set_target_properties(externals_event PROPERTIES IMPORTED_LOCATION ${LIBEVENT_CORE_ABS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -158,6 +158,8 @@ target_compile_definitions(xswiftbus PUBLIC XSWIFTBUS_VERSION="${swift_version_m
|
|||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set_target_properties(xswiftbus PROPERTIES INSTALL_RPATH @loader_path/)
|
set_target_properties(xswiftbus PROPERTIES INSTALL_RPATH @loader_path/)
|
||||||
|
elseif(UNIX)
|
||||||
|
set_target_properties(xswiftbus PROPERTIES INSTALL_RPATH $ORIGIN)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(${PROJECT_SOURCE_DIR}/cmake/xswiftbus_tools.cmake)
|
include(${PROJECT_SOURCE_DIR}/cmake/xswiftbus_tools.cmake)
|
||||||
|
|||||||
Reference in New Issue
Block a user