mirror of https://github.com/Kitware/CMake.git
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.
12 lines
353 B
12 lines
353 B
ENV
|
|
---
|
|
|
|
Operator to read environment variables.
|
|
|
|
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.
|