From 5dad2bc2ea62d7e2ef616ad0b21fc313328491ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20B=C3=BCgling?= Date: Fri, 3 Mar 2023 17:20:40 -0800 Subject: [PATCH] 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. --- CMakeLists.txt | 1 + Sources/X509/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fa6f72..8e9aba9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/Sources/X509/CMakeLists.txt b/Sources/X509/CMakeLists.txt index 5c4cb2a..01a18a1 100644 --- a/Sources/X509/CMakeLists.txt +++ b/Sources/X509/CMakeLists.txt @@ -82,6 +82,7 @@ add_library(X509 "X509BaseTypes/Validity.swift") target_link_libraries(X509 PUBLIC + $<$>:dispatch> $<$>:Foundation> Crypto _CryptoExtras