File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ include(SwiftSupport)
25
25
include (GNUInstallDirs )
26
26
include (ExternalProject )
27
27
28
+ string (TOLOWER ${CMAKE_SYSTEM_NAME} swift_os )
29
+ get_swift_host_arch (swift_arch )
30
+
28
31
ExternalProject_Add (CoreFoundation
29
32
SOURCE_DIR
30
33
${CMAKE_CURRENT_SOURCE_DIR} /CoreFoundation
@@ -286,6 +289,7 @@ add_swift_executable(plutil
286
289
${libdispatch_ldflags}
287
290
-lFoundation
288
291
${Foundation_INTERFACE_LIBRARIES}
292
+ -Xlinker;-rpath;-Xlinker; "\\\$\$ ORIGIN/../lib/swift/${swift_os} "
289
293
SWIFT_FLAGS
290
294
-DDEPLOYMENT_RUNTIME_SWIFT
291
295
${deployment_enable_libdispatch}
@@ -477,9 +481,6 @@ if(ENABLE_TESTING)
477
481
${CMAKE_CURRENT_BINARY_DIR} /TestFoundation/xdgTestHelper${CMAKE_EXECUTABLE_SUFFIX} )
478
482
endif ()
479
483
480
- string (TOLOWER ${CMAKE_SYSTEM_NAME} swift_os )
481
- get_swift_host_arch (swift_arch )
482
-
483
484
# TODO(compnerd) honour lib vs lib64
484
485
install (FILES
485
486
${CMAKE_CURRENT_BINARY_DIR} /swift/Foundation.swiftdoc
@@ -507,7 +508,7 @@ install(FILES
507
508
CoreFoundation/Base.subproj/module.map
508
509
DESTINATION
509
510
lib/swift/CoreFoundation )
510
- install (FILES
511
+ install (PROGRAMS
511
512
${CMAKE_CURRENT_BINARY_DIR} /plutil
512
513
DESTINATION
513
514
${CMAKE_INSTALL_FULL_BINDIR} )
You can’t perform that action at this time.
0 commit comments