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:
@@ -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
|
||||
^^^^^^^^
|
||||
|
||||
|
Reference in New Issue
Block a user