mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Help: Remove over-precise clause.
Section "Variables References" said that environment and cache variables are "evaluated in the same contexts as a normal variable reference". The reader has to guess what "contexts" means in this context. Probably "inside a Quoted Argument or an Unquoted Argument", exactly as for ordinary variable references. But this is exactly what the reader would tacitly assume anyway. Therefore I think the removed clause was unnecessary, and possibly more confusing than helpful.
This commit is contained in:
@@ -405,12 +405,10 @@ the ``$`` is also technically permitted but is discouraged.
|
||||
The `Variables`_ section documents the scope of variable names
|
||||
and how their values are set.
|
||||
|
||||
An *environment variable reference* has the form ``$ENV{VAR}`` and
|
||||
is evaluated in the same contexts as a normal variable reference.
|
||||
An *environment variable reference* has the form ``$ENV{VAR}``.
|
||||
See :variable:`ENV` for more information.
|
||||
|
||||
A *cache variable reference* has the form ``$CACHE{VAR}`` and
|
||||
is evaluated in the same contexts as a normal variable reference.
|
||||
A *cache variable reference* has the form ``$CACHE{VAR}``.
|
||||
See :variable:`CACHE` for more information.
|
||||
|
||||
Comments
|
||||
|
||||
Reference in New Issue
Block a user