Bläddra i källkod

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

Joachim Wuttke (h) 3 år sedan
förälder
incheckning
ab2bdbaf31
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 2 1
      Help/manual/cmake-language.7.rst
  2. 3 2
      Help/variable/ENV.rst

+ 2 - 1
Help/manual/cmake-language.7.rst

@@ -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

+ 3 - 2
Help/variable/ENV.rst

@@ -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.