Suppress needlessly alarming messages (#628)

These packages are not marked `REQUIRED` and when this project is used as a dependency of another CMake project they don't need to be findable when this CMakeLists.txt is read.  They may in fact be found later in the configuration process, so the messages when they actually _are_ needed, so the messages

```
-- Could NOT find dispatch (missing: dispatch_DIR)
-- Could NOT find Foundation (missing: Foundation_DIR)
-- Could NOT find XCTest (missing: XCTest_DIR)
```

are needlessly alarming.
This commit is contained in:
Dave Abrahams
2025-09-12 12:32:40 -07:00
committed by GitHub
parent 05cfc384b9
commit e9051489bb
+7 -3
View File
@@ -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)