From c293e05b8e6093151dcebd6e5bd76840ac4f5e89 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 26 Jun 2013 08:41:51 -0400 Subject: Document ENV syntax as a "variable" (#14245) Although "ENV" is not a special variable itself, use it to document the $ENV{VAR} syntax. --- Source/cmDocumentVariables.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx index ed51c47..7f5c8ad 100644 --- a/Source/cmDocumentVariables.cxx +++ b/Source/cmDocumentVariables.cxx @@ -1180,6 +1180,14 @@ void cmDocumentVariables::DefineVariables(cmake* cm) "The value must be an integer no less than 128.",false, "Variables That Describe the System"); + cm->DefineProperty + ("ENV", cmProperty::VARIABLE, + "Access environment variables.", + "Use the syntax $ENV{VAR} to read environment variable VAR. " + "See also the set() command to set ENV{VAR}." + ,false, + "Variables That Describe the System"); + // Variables that affect the building of object files and // targets. // -- cgit v0.12