mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
CMakeDependentOption: Sync documentation
- Added intro code block with include() showing how to load this module. - Used "command" instead of "macro". - Removed duplicate mention of CMakeDependentOption module in the option() documentation. - Synced captions in examples.
This commit is contained in:
@@ -11,14 +11,11 @@ If no initial ``<value>`` is provided, boolean ``OFF`` is the default value.
|
||||
If ``<variable>`` is already set as a normal or cache variable,
|
||||
then the command does nothing (see policy :policy:`CMP0077`).
|
||||
|
||||
For options that depend on the values of other options, see
|
||||
the module help for :module:`CMakeDependentOption`.
|
||||
|
||||
In CMake project mode, a boolean cache variable is created with the option
|
||||
value. In CMake script mode, a boolean variable is set with the option value.
|
||||
|
||||
See Also
|
||||
^^^^^^^^
|
||||
|
||||
* The :module:`CMakeDependentOption` module to specify dependent boolean options
|
||||
based on a set of conditions.
|
||||
* The :module:`CMakeDependentOption` module to specify boolean options that
|
||||
depend on the values of other options or a set of conditions.
|
||||
|
||||
Reference in New Issue
Block a user