File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ endif()
1515project (SwiftTesting
1616 LANGUAGES CXX Swift)
1717
18+ if (NOT APPLE )
19+ if (NOT CMAKE_SYSTEM_NAME STREQUAL WASI)
20+ find_package (dispatch CONFIG)
21+ endif ()
22+ find_package (Foundation CONFIG)
23+ endif ()
24+
1825include (GNUInstallDirs)
1926
2027list (APPEND CMAKE_MODULE_PATH
Original file line number Diff line number Diff line change @@ -97,6 +97,14 @@ add_library(Testing
9797 Traits/Trait.swift)
9898target_link_libraries (Testing PRIVATE
9999 _TestingInternals)
100+ if (NOT APPLE )
101+ if (NOT CMAKE_SYSTEM_NAME STREQUAL WASI)
102+ target_link_libraries (Testing PUBLIC
103+ dispatch)
104+ endif ()
105+ target_link_libraries (Testing PUBLIC
106+ Foundation)
107+ endif ()
100108if (NOT BUILD_SHARED_LIBS )
101109 # When building a static library, tell clients to autolink the internal
102110 # library.
You can’t perform that action at this time.
0 commit comments