File tree 2 files changed +15
-0
lines changed 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ endif()
15
15
project (SwiftTesting
16
16
LANGUAGES CXX Swift)
17
17
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
+
18
25
include (GNUInstallDirs)
19
26
20
27
list (APPEND CMAKE_MODULE_PATH
Original file line number Diff line number Diff line change @@ -97,6 +97,14 @@ add_library(Testing
97
97
Traits/Trait.swift)
98
98
target_link_libraries (Testing PRIVATE
99
99
_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 ()
100
108
if (NOT BUILD_SHARED_LIBS )
101
109
# When building a static library, tell clients to autolink the internal
102
110
# library.
You can’t perform that action at this time.
0 commit comments