ソースを参照

Help: Explicitly state that some file generations are lazy

Fixes: #16856
Sylvain Joubert 8 年 前
コミット
c7d81e16cb
2 ファイル変更4 行追加2 行削除
  1. 2 0
      Help/command/configure_file.rst
  2. 2 2
      Help/command/file.rst

+ 2 - 0
Help/command/configure_file.rst

@@ -33,6 +33,8 @@ either ``#define VAR 1`` or ``#define VAR 0`` similarly.
 
 If the input file is modified the build system will re-run CMake to
 re-configure the file and generate the build system again.
+The generated file is modified and its timestamp updated on subsequent
+cmake runs only if its content is changed.
 
 The arguments are:
 

+ 2 - 2
Help/command/file.rst

@@ -306,8 +306,8 @@ from the input content to produce the output content.  The options are:
 
 Exactly one ``CONTENT`` or ``INPUT`` option must be given.  A specific
 ``OUTPUT`` file may be named by at most one invocation of ``file(GENERATE)``.
-Generated files are modified on subsequent cmake runs only if their content
-is changed.
+Generated files are modified and their timestamp updated on subsequent cmake
+runs only if their content is changed.
 
 Note also that ``file(GENERATE)`` does not create the output file until the
 generation phase. The output file will not yet have been written when the