CMake/Tests/RunCMake/find_path
Martin Duffy 857a039d66 find_*: Add variable to default calls to REQUIRED
This adds a `CMAKE_FIND_REQUIRED` variable which causes `find_package`,
`find_path`, `find_file`, `find_library` and `find_program` to be
considered `REQUIRED` by default.

It also introduces an `OPTIONAL` keyword to those commands, allowing
them to ignore the value of this variable.

Issue: #26576
2025-02-27 10:51:07 -05:00
..
32bit
64bit
default.32bit
default.64bit
Frameworks/Foo.framework/Headers/Some/Dir
include
MSYSTEM_PREFIX/include
CMakeLists.txt
EmptyOldStyle-stdout.txt
EmptyOldStyle.cmake
FrameworksWithSubdirs-stdout.txt
FrameworksWithSubdirs.cmake
FromPATHEnv-stderr.txt
FromPATHEnv-stdout.txt
FromPATHEnv.cmake
FromPATHEnvDebugVar-stderr.txt
FromPATHEnvDebugVar-stdout.txt
FromPATHEnvDebugVar.cmake
MSYSTEM_PREFIX-stdout.txt
MSYSTEM_PREFIX.cmake
NO_CACHE-stderr.txt
NO_CACHE-stdout.txt
NO_CACHE.cmake
Optional-result.txt find_*: Add variable to default calls to REQUIRED 2025-02-27 10:51:07 -05:00
Optional-stderr.txt find_*: Add variable to default calls to REQUIRED 2025-02-27 10:51:07 -05:00
Optional.cmake find_*: Add variable to default calls to REQUIRED 2025-02-27 10:51:07 -05:00
PrefixInPATH-stdout.txt
PrefixInPATH.cmake
registry_host32bit.reg
registry_host64bit.reg
REGISTRY_VIEW-no-view-result.txt
REGISTRY_VIEW-no-view-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
REGISTRY_VIEW-no-view.cmake
REGISTRY_VIEW-wrong-view-result.txt
REGISTRY_VIEW-wrong-view-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
REGISTRY_VIEW-wrong-view.cmake
Registry-query-stderr.txt
Registry-query.cmake
Required-result.txt
Required-stderr.txt
Required-stdout.txt
Required.cmake
RunCMakeTest.cmake find_*: Add variable to default calls to REQUIRED 2025-02-27 10:51:07 -05:00
VALIDATOR-no-function-result.txt
VALIDATOR-no-function-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
VALIDATOR-no-function.cmake
VALIDATOR-specify-macro-result.txt
VALIDATOR-specify-macro-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
VALIDATOR-specify-macro.cmake
VALIDATOR-stderr.txt
VALIDATOR-stdout.txt
VALIDATOR-undefined-function-result.txt
VALIDATOR-undefined-function-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
VALIDATOR-undefined-function.cmake
VALIDATOR.cmake