diff options
Diffstat (limited to 'share/cmake-3.18/Help/variable/ENV.rst')
-rw-r--r-- | share/cmake-3.18/Help/variable/ENV.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/cmake-3.18/Help/variable/ENV.rst b/share/cmake-3.18/Help/variable/ENV.rst new file mode 100644 index 0000000..2b43934 --- /dev/null +++ b/share/cmake-3.18/Help/variable/ENV.rst @@ -0,0 +1,12 @@ +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. |