File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,10 @@ if(LibRT_FOUND)
137
137
endif ()
138
138
target_link_libraries (dispatch PRIVATE
139
139
Threads::Threads )
140
- target_link_libraries (dispatch PUBLIC
141
- BlocksRuntime::BlocksRuntime )
140
+ if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
141
+ target_link_libraries (dispatch PUBLIC
142
+ BlocksRuntime::BlocksRuntime )
143
+ endif ()
142
144
if (CMAKE_SYSTEM_NAME STREQUAL Windows )
143
145
target_link_libraries (dispatch PRIVATE
144
146
ShLwApi
Original file line number Diff line number Diff line change @@ -37,8 +37,11 @@ set_target_properties(swiftDispatch PROPERTIES
37
37
Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /swift
38
38
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR} /swift )
39
39
target_link_libraries (swiftDispatch PRIVATE
40
- DispatchStubs
41
- BlocksRuntime::BlocksRuntime )
40
+ DispatchStubs )
41
+ if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
42
+ target_link_libraries (swiftDispatch PRIVATE
43
+ BlocksRuntime::BlocksRuntime )
44
+ endif ()
42
45
target_link_libraries (swiftDispatch PUBLIC
43
46
dispatch )
44
47
add_dependencies (swiftDispatch module-maps )
Original file line number Diff line number Diff line change @@ -99,8 +99,11 @@ function(add_unit_test name)
99
99
target_link_libraries (${name}
100
100
PRIVATE
101
101
dispatch
102
- Threads::Threads
103
- BlocksRuntime::BlocksRuntime )
102
+ Threads::Threads )
103
+ if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
104
+ target_link_libraries (${name} PRIVATE
105
+ BlocksRuntime::BlocksRuntime )
106
+ endif ()
104
107
target_link_libraries (${name} PRIVATE bsdtests )
105
108
add_test (NAME ${name}
106
109
COMMAND bsdtestharness $< TARGET_FILE:${name} > )
You can’t perform that action at this time.
0 commit comments