mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
9 lines
361 B
ReStructuredText
9 lines
361 B
ReStructuredText
cmake-find-required
|
|
-------------------
|
|
|
|
* The :variable:`CMAKE_FIND_REQUIRED` variable was added to tell
|
|
:command:`find_package`, :command:`find_path`, :command:`find_file`,
|
|
:command:`find_library`, and :command:`find_program` to be ``REQUIRED``
|
|
by default. The commands also gained an ``OPTIONAL`` keyword to ignore
|
|
the variable for a specific call.
|