From 93e04febc080954df9a808655b5e1fa74a23c5ed Mon Sep 17 00:00:00 2001 From: Finagolfin Date: Mon, 11 Aug 2025 19:09:18 +0530 Subject: [PATCH] [CMake] Remove unused dependency on Foundation build directory --- Sources/Overlays/_Testing_Foundation/CMakeLists.txt | 11 ----------- Sources/Testing/CMakeLists.txt | 2 -- 2 files changed, 13 deletions(-) diff --git a/Sources/Overlays/_Testing_Foundation/CMakeLists.txt b/Sources/Overlays/_Testing_Foundation/CMakeLists.txt index 9343960ab..1620c7fca 100644 --- a/Sources/Overlays/_Testing_Foundation/CMakeLists.txt +++ b/Sources/Overlays/_Testing_Foundation/CMakeLists.txt @@ -20,17 +20,6 @@ add_library(_Testing_Foundation target_link_libraries(_Testing_Foundation PUBLIC Testing) -# Although this library links Foundation on all platforms, it only does so using -# `target_link_libraries()` when building for non-Apple platforms. This is -# because that command uses the `-lFoundation` linker flag, but on Apple -# platforms Foundation is a .framework and requires a different flag. However, -# we don't need to explicitly pass any linker flag since it's handled -# automatically on Apple platforms via auto-linking. -if(NOT APPLE) - target_link_libraries(_Testing_Foundation PUBLIC - Foundation) -endif() - # Note: This does not enable Library Evolution, despite emitting a module # interface, because Foundation does not have Library Evolution enabled for all # platforms. diff --git a/Sources/Testing/CMakeLists.txt b/Sources/Testing/CMakeLists.txt index f970f43bb..59e1ae8a0 100644 --- a/Sources/Testing/CMakeLists.txt +++ b/Sources/Testing/CMakeLists.txt @@ -116,8 +116,6 @@ if(NOT APPLE) target_link_libraries(Testing PUBLIC dispatch) endif() - target_link_libraries(Testing PUBLIC - Foundation) if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") target_link_libraries(Testing PUBLIC execinfo) endif()