Ver código fonte

Document ENV syntax as a "variable" (#14245)

Although "ENV" is not a special variable itself, use it to document
the $ENV{VAR} syntax.
Brad King 12 anos atrás
pai
commit
c293e05b8e
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      Source/cmDocumentVariables.cxx

+ 8 - 0
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.
   //