Browse Source

Help: configure_file: add $CACHE{VAR} and $ENV{VAR} to description

The configure_file(...) and string(CONFIGURE ...) functions also
substitutes variables of the form: $CACHE{VAR} and $ENV{VAR}.

Therefore add this information to the help documentation so that this
behavior is described to users
Torsten Rasmussen 2 năm trước cách đây
mục cha
commit
b2b97d015e
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      Help/command/configure_file.rst

+ 4 - 4
Help/command/configure_file.rst

@@ -12,10 +12,10 @@ Copy a file to another location and modify its contents.
                  [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])
 
 Copies an ``<input>`` file to an ``<output>`` file and substitutes
-variable values referenced as ``@VAR@`` or ``${VAR}`` in the input
-file content.  Each variable reference will be replaced with the
-current value of the variable, or the empty string if the variable
-is not defined.  Furthermore, input lines of the form
+variable values referenced as ``@VAR@``, ``${VAR}``, ``$CACHE{VAR}`` or
+``$ENV{VAR}`` in the input file content.  Each variable reference will be
+replaced with the current value of the variable, or the empty string if
+the variable is not defined.  Furthermore, input lines of the form
 
 .. code-block:: c