summaryrefslogtreecommitdiffstats
path: root/Help/variable/CACHE.rst
diff options
context:
space:
mode:
authorJoachim Wuttke (l) <j.wuttke@fz-juelich.de>2018-11-01 10:18:15 (GMT)
committerJoachim Wuttke (h) <j.wuttke@fz-juelich.de>2018-11-08 19:33:13 (GMT)
commit860338491ee96274ac110459b3b316149d4585f7 (patch)
treeb754fa362154500439dd8e93e16147cf60d41347 /Help/variable/CACHE.rst
parente855bd5248bbb7b77b45e269e4fa098b29c9e889 (diff)
downloadCMake-860338491ee96274ac110459b3b316149d4585f7.zip
CMake-860338491ee96274ac110459b3b316149d4585f7.tar.gz
CMake-860338491ee96274ac110459b3b316149d4585f7.tar.bz2
Help: Describe $CACHE and $ENV as operators
This resolves issue #18514 Also add a cross-reference to if(DEFINED ENV{var}).
Diffstat (limited to 'Help/variable/CACHE.rst')
-rw-r--r--Help/variable/CACHE.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/variable/CACHE.rst b/Help/variable/CACHE.rst
index 230739a..2cef27e 100644
--- a/Help/variable/CACHE.rst
+++ b/Help/variable/CACHE.rst
@@ -1,7 +1,7 @@
CACHE
-----
-Read cache variables.
+Operator to read cache variables.
Use the syntax ``$CACHE{VAR}`` to read cache entry ``VAR``.
See the :ref:`cmake-language(7) variables <CMake Language Variables>`
@@ -14,4 +14,5 @@ found CMake will search for a cache entry with that name.
The ``$CACHE{VAR}`` syntax can be used to do direct cache lookup and
ignore any existing normal variable.
-See the :command:`set` command to see how to write cache variables.
+See the :command:`set` and :command:`unset` commands to see how to
+write or remove cache variables.