Skip to content

[DNM] Testing swift-foundation cmake build #4948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ endif()

find_package(ICU COMPONENTS uc i18n REQUIRED OPTIONAL_COMPONENTS data)

include(FetchContent)
FetchContent_Declare(SwiftFoundationICU
SOURCE_DIR "${CMAKE_SOURCE_DIR}/../swift-foundation-icu")
FetchContent_MakeAvailable(SwiftFoundationICU)

# This is needed if we're statically linking, otherwise we can't pull in Dispatch
# because we won't have RT::rt as a CMake target.
if(NOT CMAKE_SYSTEM_NAME STREQUAL Android)
Expand Down
1 change: 1 addition & 0 deletions Sources/Foundation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ target_link_libraries(Foundation
$<$<PLATFORM_ID:Windows>:pathcch>
CoreFoundation
uuid
FoundationICU
PUBLIC
swiftDispatch)
if("${CMAKE_C_COMPILER_TARGET}" MATCHES ".*-musl[^-*]$")
Expand Down