File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,11 @@ function(add_swift_unittest test_dirname)
40
40
endif ()
41
41
42
42
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Darwin" )
43
- # Add an @rpath to the swift library directory.
43
+ # Add an @rpath to the swift library directory
44
+ # and one to the OS dylibs we require but
45
+ # are not building ourselves (e.g Foundation overlay)
44
46
set_target_properties (${test_dirname} PROPERTIES
45
- BUILD_RPATH ${SWIFT_LIBRARY_OUTPUT_INTDIR} /swift/macosx )
47
+ BUILD_RPATH " ${SWIFT_LIBRARY_OUTPUT_INTDIR} /swift/macosx; ${SWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR} " )
46
48
# Force all the swift libraries to be found via rpath.
47
49
add_custom_command (TARGET "${test_dirname} " POST_BUILD
48
50
COMMAND "${SWIFT_SOURCE_DIR} /utils/swift-rpathize.py"
@@ -87,4 +89,3 @@ function(add_swift_unittest test_dirname)
87
89
endif ()
88
90
endfunction ()
89
91
90
-
You can’t perform that action at this time.
0 commit comments