Skip to content

Commit be566fc

Browse files
committed
[CMake] Remove unused dependency on Foundation build directory
1 parent 75d5929 commit be566fc

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

Sources/Overlays/_Testing_Foundation/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ add_library(_Testing_Foundation
2020
target_link_libraries(_Testing_Foundation PUBLIC
2121
Testing)
2222

23-
# Although this library links Foundation on all platforms, it only does so using
24-
# `target_link_libraries()` when building for non-Apple platforms. This is
25-
# because that command uses the `-lFoundation` linker flag, but on Apple
26-
# platforms Foundation is a .framework and requires a different flag. However,
27-
# we don't need to explicitly pass any linker flag since it's handled
28-
# automatically on Apple platforms via auto-linking.
29-
if(NOT APPLE)
30-
target_link_libraries(_Testing_Foundation PUBLIC
31-
Foundation)
32-
endif()
33-
3423
# Note: This does not enable Library Evolution, despite emitting a module
3524
# interface, because Foundation does not have Library Evolution enabled for all
3625
# platforms.

Sources/Testing/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ if(NOT APPLE)
125125
target_link_libraries(Testing PUBLIC
126126
dispatch)
127127
endif()
128-
target_link_libraries(Testing PUBLIC
129-
Foundation)
130128
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR
131129
CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
132130
target_link_libraries(Testing PUBLIC execinfo)

0 commit comments

Comments
 (0)