https://github.com/Kitware/CMake
Raw File
Tip revision: bf02d625325535f485512eba307cff54c08bb257 authored by Brad King on 14 March 2019, 13:08:05 UTC
CMake 3.14.0
Tip revision: bf02d62
ENV.rst
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.
back to top