Skip to content

Commit 37010f0

Browse files
authored
Merge pull request #485 from apple/disable-group-followup
Don't set target_link_libraries on disabled group test
2 parents 717b3f7 + b200fd9 commit 37010f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ set(DISPATCH_C_TESTS
159159
# Tests that usually pass, but occasionally fail.
160160
# Excluded by default for purposes of Swift CI
161161
if(EXTENDED_TEST_SUITE)
162+
# When dispatch_group is reenabled here, also remove the if(EXTENDED_TEST_SUITE) condition below
162163
list(APPEND DISPATCH_C_TESTS
163164
priority
164165
concur
@@ -205,7 +206,10 @@ add_unit_test(dispatch_plusplus SOURCES dispatch_plusplus.cpp)
205206
if(WIN32)
206207
target_link_libraries(dispatch_io_net PRIVATE WS2_32)
207208
else()
208-
target_link_libraries(dispatch_group PRIVATE m)
209+
# When dispatch_group is reenabled above, remove this
210+
if(EXTENDED_TEST_SUITE)
211+
target_link_libraries(dispatch_group PRIVATE m)
212+
endif()
209213
target_link_libraries(dispatch_timer_short PRIVATE m)
210214
endif()
211215

0 commit comments

Comments
 (0)