summaryrefslogtreecommitdiffstats
path: root/Help/command/option.rst
diff options
context:
space:
mode:
authorHong Xu <hong@topbug.net>2020-05-08 01:27:51 (GMT)
committerCraig Scott <craig.scott@crascit.com>2020-05-08 08:30:27 (GMT)
commit36a6d9101179827744cfe23bcf5381e8e71a16cd (patch)
tree6ed76adc8613a41830de6ea26be7e0f03ffdd417 /Help/command/option.rst
parentadef7c09d0086aeb9ffd41bfe0aa11bcaf79e2be (diff)
downloadCMake-36a6d9101179827744cfe23bcf5381e8e71a16cd.zip
CMake-36a6d9101179827744cfe23bcf5381e8e71a16cd.tar.gz
CMake-36a6d9101179827744cfe23bcf5381e8e71a16cd.tar.bz2
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.
Diffstat (limited to 'Help/command/option.rst')
-rw-r--r--Help/command/option.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/command/option.rst b/Help/command/option.rst
index 8956307..02b8dac 100644
--- a/Help/command/option.rst
+++ b/Help/command/option.rst
@@ -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