diff options
author | Joachim Wuttke (l) <j.wuttke@fz-juelich.de> | 2018-11-01 10:18:15 (GMT) |
---|---|---|
committer | Joachim Wuttke (h) <j.wuttke@fz-juelich.de> | 2018-11-08 19:33:13 (GMT) |
commit | 860338491ee96274ac110459b3b316149d4585f7 (patch) | |
tree | b754fa362154500439dd8e93e16147cf60d41347 /Help/variable/CACHE.rst | |
parent | e855bd5248bbb7b77b45e269e4fa098b29c9e889 (diff) | |
download | CMake-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.rst | 5 |
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. |