You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
641 B
18 lines
641 B
6 years ago
|
CACHE
|
||
|
-----
|
||
|
|
||
|
Read cache variables.
|
||
|
|
||
|
Use the syntax ``$CACHE{VAR}`` to read cache entry ``VAR``.
|
||
|
See the :ref:`cmake-language(7) variables <CMake Language Variables>`
|
||
|
documentation for more complete documentation of the interaction of
|
||
|
normal variables and cache entries.
|
||
|
|
||
|
When evaluating :ref:`Variable References` of the form ``${VAR}``,
|
||
|
CMake first searches for a normal variable with that name, and if not
|
||
|
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.
|