diff --git a/CMakeLists.txt b/CMakeLists.txt index ab3cc98a6..881a872c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,5 +37,10 @@ if(BUILD_SHARED_LIBS) set(CMAKE_POSITION_INDEPENDENT_CODE YES) endif() +if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin) + find_package(dispatch CONFIG) + find_package(Foundation CONFIG) +endif() + add_subdirectory(Sources) add_subdirectory(cmake/modules) diff --git a/Sources/Crypto/CMakeLists.txt b/Sources/Crypto/CMakeLists.txt index 683528f1f..be6451ec0 100644 --- a/Sources/Crypto/CMakeLists.txt +++ b/Sources/Crypto/CMakeLists.txt @@ -80,6 +80,8 @@ target_include_directories(Crypto PRIVATE $ $) target_link_libraries(Crypto PUBLIC + $<$>:dispatch> + $<$>:Foundation> CCryptoBoringSSL CCryptoBoringSSLShims) set_target_properties(Crypto PROPERTIES