CMake/Tests/RunCMake/find_program
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 find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
64bit find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
A
B
default.32bit find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
default.64bit find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
Prefix/bin
SystemPrefix/bin
Win
BundleSpaceInName-stdout.txt
BundleSpaceInName.cmake
CMakeLists.txt Tests/RunCMake: Update cmake_minimum_required versions to 3.10 2024-10-03 11:52:22 -04:00
CMP0109-Common.cmake
CMP0109-NEW-stdout.txt
CMP0109-NEW.cmake
CMP0109-OLD-stderr.txt Add deprecation warnings for policies CMP0114 and below 2023-02-01 17:01:38 -05:00
CMP0109-OLD-stdout.txt
CMP0109-OLD.cmake
CMP0109-WARN-stderr.txt
CMP0109-WARN-stdout.txt
CMP0109-WARN.cmake
DirsPerName-stdout.txt
DirsPerName.cmake
EnvAndHints-stderr.txt Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
EnvAndHints-stdout.txt
EnvAndHints.cmake
EnvAndHintsDebugVar-stderr.txt Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
EnvAndHintsDebugVar-stdout.txt
EnvAndHintsDebugVar.cmake
IgnorePrefixPath.cmake Tests: Disable CMAKE_SYSTEM_PROGRAM_PATH in IgnorePrefixPath test 2022-03-08 17:38:07 -05:00
NamesPerDir-stdout.txt
NamesPerDir.cmake
NO_CACHE-stderr.txt Add deprecation warnings for policies CMP0126 and below 2023-10-03 17:21:47 -04:00
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
registry_host32bit.reg find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
registry_host64bit.reg find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-no-view-result.txt find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
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 find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-wrong-view-result.txt find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
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 find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
Registry-query-stderr.txt Add deprecation warnings for policies CMP0139 and below 2024-10-10 09:31:52 -04:00
Registry-query.cmake find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
RelAndAbsPath-stdout.txt
RelAndAbsPath.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
testCWD
VALIDATOR-no-function-result.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-no-function-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
VALIDATOR-no-function.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-specify-macro-result.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-specify-macro-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
VALIDATOR-specify-macro.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-stderr.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-stdout.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-undefined-function-result.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-undefined-function-stderr.txt find_*: Improve error message quoting consistency 2024-11-27 08:30:15 -05:00
VALIDATOR-undefined-function.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
WindowsCom-stdout.txt
WindowsCom.cmake
WindowsExe-stdout.txt
WindowsExe.cmake