File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
155
155
"-Xlinker -alias_list -Xlinker ${PROJECT_SOURCE_DIR} /xcodeconfig/libdispatch.aliases" )
156
156
endif ()
157
157
158
+ if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows" )
159
+ set_target_properties (dispatch PROPERTIES INSTALL_RPATH "$ORIGIN" )
160
+ endif ()
161
+
158
162
if (ENABLE_SWIFT)
159
163
add_subdirectory (swift)
160
164
endif ()
Original file line number Diff line number Diff line change @@ -59,4 +59,7 @@ if(NOT BUILD_SHARED_LIBS)
59
59
install (TARGETS DispatchStubs
60
60
EXPORT dispatchExports
61
61
DESTINATION ${INSTALL_TARGET_DIR} )
62
+ elseif (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows" )
63
+ target_link_options (swiftDispatch PRIVATE "SHELL:-no-toolchain-stdlib-rpath" )
64
+ set_target_properties (swiftDispatch PROPERTIES INSTALL_RPATH "$ORIGIN" )
62
65
endif ()
You can’t perform that action at this time.
0 commit comments