Skip to content

Commit d6920f3

Browse files
committed
Add explicit dispatch dependency
1 parent 5484b29 commit d6920f3

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ FetchContent_MakeAvailable(SwiftFoundation)
6161
# System dependencies (fail fast if dependencies are missing)
6262
find_package(LibXml2 REQUIRED)
6363
find_package(CURL REQUIRED)
64+
find_package(dispatch CONFIG REQUIRED)
6465

6566
# Common build flags (_CFURLSessionInterface, _CFXMLInterface, CoreFoundation)
6667
set(_Foundation_common_build_flags)

Sources/CoreFoundation/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ target_precompile_headers(_CoreFoundation PRIVATE internalInclude/CoreFoundation
3636
target_link_libraries(_CoreFoundation PUBLIC
3737
FoundationICU)
3838

39+
target_link_libraries(_CoreFoundation PRIVATE
40+
dispatch)
41+
3942
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS _CoreFoundation)

Sources/_CFURLSessionInterface/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ target_compile_options(_CFURLSessionInterface PRIVATE
2828
"SHELL:$<$<COMPILE_LANGUAGE:C>:${_Foundation_common_build_flags}>")
2929

3030
target_link_libraries(_CFURLSessionInterface PRIVATE
31-
_CoreFoundation)
31+
_CoreFoundation
32+
dispatch)

Sources/_CFXMLInterface/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ target_compile_options(_CFXMLInterface PRIVATE
2727
"SHELL:$<$<COMPILE_LANGUAGE:C>:${_Foundation_common_build_flags}>")
2828

2929
target_link_libraries(_CFXMLInterface PRIVATE
30-
_CoreFoundation)
30+
_CoreFoundation
31+
dispatch)

0 commit comments

Comments
 (0)