File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,12 @@ endif()
102
102
103
103
if (CMAKE_SYSTEM_NAME STREQUAL Android OR CMAKE_SYSTEM_NAME STREQUAL Linux )
104
104
set (deployment_target -DDEPLOYMENT_TARGET_LINUX )
105
+ set (Foundation_rpath_flags -Xlinker;-rpath;-Xlinker; "\\\$\$ ORIGIN" )
105
106
elseif (CMAKE_SYSTEM_NAME STREQUAL Darwin )
106
107
set (deployment_target -DDEPLOYMENT_TARGET_MACOSX )
107
108
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD )
108
109
set (deployment_target -DDEPLOYMENT_TARGET_FREEBSD )
110
+ set (Foundation_rpath_flags -Xlinker;-rpath;-Xlinker; "\\\$\$ ORIGIN" )
109
111
elseif (CMAKE_SYSTEM_NAME STREQUAL Windows )
110
112
set (deployment_target -DDEPLOYMENT_TARGET_WINDOWS )
111
113
endif ()
@@ -278,6 +280,7 @@ add_swift_library(Foundation
278
280
${deployment_target}
279
281
${deployment_enable_libdispatch}
280
282
-F${install_dir}/System/Library/Frameworks
283
+ -D_DLL
281
284
LINK_FLAGS
282
285
-L${install_dir}/usr/lib
283
286
-lCoreFoundation
@@ -287,7 +290,7 @@ add_swift_library(Foundation
287
290
${libdispatch_ldflags}
288
291
-L${CMAKE_CURRENT_BINARY_DIR}
289
292
-luuid
290
- -Xlinker;-rpath;-Xlinker; " \\\$\$ ORIGIN"
293
+ ${Foundation_rpath_flags}
291
294
SWIFT_FLAGS
292
295
-DDEPLOYMENT_RUNTIME_SWIFT
293
296
${deployment_enable_libdispatch}
You can’t perform that action at this time.
0 commit comments