mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Merge topic 'doc-option-existing-var'
36a6d91011
Help: If a cache variable exists, option() also does nothing
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4721
This commit is contained in:
@@ -9,7 +9,7 @@ Provide an option that the user can optionally select.
|
||||
|
||||
Provides an option for the user to select as ``ON`` or ``OFF``.
|
||||
If no initial ``<value>`` is provided, ``OFF`` is used.
|
||||
If ``<variable>`` is already set as a normal variable
|
||||
If ``<variable>`` is already set as a normal or cache variable,
|
||||
then the command does nothing (see policy :policy:`CMP0077`).
|
||||
|
||||
If you have options that depend on the values of other options, see
|
||||
|
Reference in New Issue
Block a user