Help: Cross-reference ENV operator from cmake-language(7) manual

This commit is contained in:
Joachim Wuttke (h)
2022-05-04 15:10:20 +02:00
committed by Brad King
parent ee4e728a69
commit ab2bdbaf31
2 changed files with 5 additions and 3 deletions

View File

@@ -582,7 +582,8 @@ Scope
They are never cached.
References
`Variable References`_ have the form ``$ENV{<variable>}``.
`Variable References`_ have the form ``$ENV{<variable>}``, using the
:variable:`ENV` operator.
Initialization
Initial values of the CMake environment variables are those of

View File

@@ -8,5 +8,6 @@ Use the syntax ``$ENV{VAR}`` to read environment variable ``VAR``.
To test whether an environment variable is defined, use the signature
``if(DEFINED ENV{<name>})`` of the :command:`if` command.
See the :command:`set` and :command:`unset` commands to see how to
write or remove environment variables.
For general information on environment variables, see the
:ref:`Environment Variables <CMake Language Environment Variables>`
section in the :manual:`cmake-language(7)` manual.