Skip to content

Commit f3f8ade

Browse files
lorenteyedymtt
andauthored
Update cmake/modules/AddSwiftUnittests.cmake
Co-authored-by: Eric Miotto <[email protected]>
1 parent f76539f commit f3f8ade

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/modules/AddSwiftUnittests.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ function(add_swift_unittest test_dirname)
4040
endif()
4141

4242
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)
4446
set_target_properties(${test_dirname} PROPERTIES
4547
BUILD_RPATH "${SWIFT_LIBRARY_OUTPUT_INTDIR}/swift/macosx;${SWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR}")
4648
# Force all the swift libraries to be found via rpath.
@@ -87,4 +89,3 @@ function(add_swift_unittest test_dirname)
8789
endif()
8890
endfunction()
8991

90-

0 commit comments

Comments
 (0)