summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-10 13:58:52 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-10 13:58:52 (GMT)
commit07790796fc32105c672f4fc6a3d2aa77611c652f (patch)
tree526674824aabfc018553aabc996f8b5c7dad0277 /Help
parent07cc72502d25a0bdeeeaf9e4b52b56e6c01bc3cb (diff)
parentd039f7414f9acc28ad1e51e775e888688f51a706 (diff)
downloadCMake-07790796fc32105c672f4fc6a3d2aa77611c652f.zip
CMake-07790796fc32105c672f4fc6a3d2aa77611c652f.tar.gz
CMake-07790796fc32105c672f4fc6a3d2aa77611c652f.tar.bz2
Merge branch 'clarifyFileGenerateDocs' into release
Diffstat (limited to 'Help')
-rw-r--r--Help/command/file.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst
index 3e669c2..b2e4eea 100644
--- a/Help/command/file.rst
+++ b/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.
+
------------------------------------------------------------------------------
::