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:
Boris Bügling authored and GitHub committed 2023-03-03 17:20:40 -08:00
1 parent 75c7f1c7c8
commit 5dad2bc2ea
2 files changed
+2

No files matched your search

+1
View File
@@ -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()
+1
View File
@@ -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