1CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>
2----------------------------------------
3
4.. versionadded:: 3.22
5
6Variable for making :command:`find_package` call ``REQUIRED``.
7
8Every non-``REQUIRED`` :command:`find_package` call in a project can be
9turned into ``REQUIRED`` by setting the variable
10``CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>`` to ``TRUE``.
11This can be used to assert assumptions about build environment and to
12ensure the build will fail early if they do not hold.
13
14See also the :variable:`CMAKE_DISABLE_FIND_PACKAGE_<PackageName>` variable.
15