1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

CMakeDependentOption: Document project and script mode

This module also works in script mode. This is a sync with the option()
command which mentions how the variable behaves in project and script
mode.
This commit is contained in:
Peter Kokot
2025-09-14 23:38:51 +02:00
parent dd06fad849
commit 8b25e11fed

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
^^^^^^^^