mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Add an option to capture error messages in a variable instead of terminating with a fatal error. Fixes: #25778
12 lines
433 B
CMake
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}")
|