summaryrefslogtreecommitdiffstats
path: root/Help/command/option.rst
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-06-21 18:53:11 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-09 11:48:28 (GMT)
commit2a5f5c0e316d415e1b8207348b34761d34f191ae (patch)
treea17a979c357a3148424b71fc0bcac898b1ec7e4a /Help/command/option.rst
parent12e6f83319d089b3295b4211d0d4810575e8f7d5 (diff)
downloadCMake-2a5f5c0e316d415e1b8207348b34761d34f191ae.zip
CMake-2a5f5c0e316d415e1b8207348b34761d34f191ae.tar.gz
CMake-2a5f5c0e316d415e1b8207348b34761d34f191ae.tar.bz2
option: respect existing normal variable
Add policy CMP0077 to change this behavior in a compatible way.
Diffstat (limited to 'Help/command/option.rst')
-rw-r--r--Help/command/option.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/option.rst b/Help/command/option.rst
index 91cd0a7..4fabb87 100644
--- a/Help/command/option.rst
+++ b/Help/command/option.rst
@@ -9,7 +9,9 @@ Provides an option that the user can optionally select.
[initial value])
Provide an option for the user to select as ``ON`` or ``OFF``. If no
-initial value is provided, ``OFF`` is used.
+initial value is provided, ``OFF`` is used. If the option is already
+set as a normal variable then the command does nothing
+(see policy :policy:`CMP0077`).
If you have options that depend on the values of other options, see
the module help for :module:`CMakeDependentOption`.