mirror of
https://github.com/apple/swift-certificates
synced 2026-11-26 04:47:48 +00:00
Fix CMake build (#33)
When building against a build tree artifact for Foundation, we need to add the build tree artifacts of dispatch as that is an exposed dependency for Foundation.
This commit is contained in:
1 parent
75c7f1c7c8
commit
5dad2bc2ea
2 files changed
+2
No files matched your search
@@ -38,6 +38,7 @@ if(BUILD_SHARED_LIBS)
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
||||
find_package(dispatch CONFIG)
|
||||
find_package(Foundation CONFIG)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ add_library(X509
|
||||
"X509BaseTypes/Validity.swift")
|
||||
|
||||
target_link_libraries(X509 PUBLIC
|
||||
$<$<NOT:$<PLATFORM_ID:Darwin>>:dispatch>
|
||||
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>
|
||||
Crypto
|
||||
_CryptoExtras
|
||||
|
||||
Reference in new issue
Block a user