diff --git a/CMakeLists.txt b/CMakeLists.txt index 12b618f3..2f260420 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,9 +21,13 @@ include(CTest) include(GNUInstallDirs) include(SwiftSupport) -find_package(dispatch CONFIG) -find_package(Foundation CONFIG) -find_package(XCTest CONFIG) +if(NOT APPLE) + find_package(dispatch CONFIG) + find_package(Foundation CONFIG) + if(BUILD_TESTING) + find_package(XCTest CONFIG) + endif() +endif() add_subdirectory(Sources) if(BUILD_EXAMPLES)