1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +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:
Hong Xu
2020-05-07 18:27:51 -07:00
committed by Craig Scott
parent adef7c09d0
commit 36a6d91011

View File

@@ -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