Help: Clarify file(GENERATE) only writes output file at generation phase

Closes: #16556
This commit is contained in:
Craig Scott
2017-04-09 07:21:40 +10:00
committed by Brad King
parent 18eeed4194
commit d039f7414f

View File

@@ -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.
------------------------------------------------------------------------------
::