Merge topic 'patch-CMakeDependentOption-script-mode'

8b25e11fed CMakeDependentOption: Document project and script mode

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11192
This commit is contained in:
Brad King
2025-09-16 13:53:19 +00:00
committed by Kitware Robot

View File

@@ -10,7 +10,7 @@ default values depend on specified conditions or other options. This helps
maintain a clean configuration interface by only displaying options that are
relevant to the current settings.
Load this module in a CMake project with:
Load this module in CMake with:
.. code-block:: cmake
@@ -82,6 +82,9 @@ This module provides the following command:
The value assigned to a local variable named ``<variable>``, when
``<condition>`` evaluates to boolean false.
In CMake project mode, boolean cache variables are created as explained
above. In CMake script mode, boolean variables are set instead.
Examples
^^^^^^^^