mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 15:32:10 +08:00
Help: If a cache variable exists, option() also does nothing
The previous text sounded as if option() does some work when a cache variable exists.
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``.
|
Provides an option for the user to select as ``ON`` or ``OFF``.
|
||||||
If no initial ``<value>`` is provided, ``OFF`` is used.
|
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`).
|
then the command does nothing (see policy :policy:`CMP0077`).
|
||||||
|
|
||||||
If you have options that depend on the values of other options, see
|
If you have options that depend on the values of other options, see
|
||||||
|
Reference in New Issue
Block a user