Files
cmake/Tests/RunCMake/CMakePackage/apple-import-unsupported-capture.cmake
Brad King 85d6d3b2e3 generate_apple_*_selection_file: Add option to capture errors
Add an option to capture error messages in a variable instead of
terminating with a fatal error.

Fixes: #25778
2024-03-19 09:52:32 -04:00

12 lines
433 B
CMake

include(apple-common.cmake)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE NEVER)
find_package(bad-platform-capture CONFIG REQUIRED)
find_package(bad-arch-capture CONFIG REQUIRED)
# The above packages capture their own error messages.
# In real packages they would then set _FOUND to false.
# For testing here, just print the messages.
message(STATUS "${bad-platform-capture_unsupported}")
message(STATUS "${bad-arch-capture_unsupported}")