mirror of https://github.com/Kitware/CMake.git
Browse Source
Merge topic 'env'
Merge topic 'env'
pull/324/head860338491e
Help: Describe $CACHE and $ENV as operatorse855bd5248
Help: Document if(DEFINED ENV{name})8ba2a8d4a4
Help: short/long variable reference in if command85498fccd8
Help: Provide backreferences.e24ef96942
Help: New section on Environment Variables in cmake-language.7e4554149c4
Help: Remove over-precise clause.3de551cc22
Help: Clarify effect of set(ENV{..} ..) and unset(ENV{..}) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2538

committed by
Kitware Robot

8 changed files with 104 additions and 23 deletions
-
16Help/command/if.rst
-
8Help/command/set.rst
-
17Help/command/unset.rst
-
8Help/manual/cmake-env-variables.7.rst
-
46Help/manual/cmake-language.7.rst
-
19Help/manual/cmake-variables.7.rst
-
5Help/variable/CACHE.rst
-
8Help/variable/ENV.rst
@ -1,8 +1,12 @@ |
|||
ENV |
|||
--- |
|||
|
|||
Read environment variables. |
|||
Operator to read environment variables. |
|||
|
|||
Use the syntax ``$ENV{VAR}`` to read environment variable ``VAR``. |
|||
|
|||
See the :command:`set` command to see how to write environment variables. |
|||
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. |
Write
Preview
Loading…
Cancel
Save
Reference in new issue