浏览代码

Merge branch 'clarifyFileGenerateDocs' into release

Brad King 8 年之前
父节点
当前提交
07790796fc
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Help/command/file.rst

+ 5 - 0
Help/command/file.rst

@@ -304,6 +304,11 @@ Exactly one ``CONTENT`` or ``INPUT`` option must be given.  A specific
 Generated files are modified 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
+``file(GENERATE)`` command returns, it is written only after processing all
+of a project's ``CMakeLists.txt`` files.
+
 ------------------------------------------------------------------------------
 
 ::