ENV

Read environment variables.

Use the syntax $ENV{VAR} to read environment variable VAR.

See the set() command to see how to write environment variables.

© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.13/variable/ENV.html