mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-28 13:44:02 +08:00
14 lines
437 B
ReStructuredText
14 lines
437 B
ReStructuredText
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.
|
|
|
|
For general information on environment variables, see the
|
|
:ref:`Environment Variables <CMake Language Environment Variables>`
|
|
section in the :manual:`cmake-language(7)` manual.
|