mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 19:59:47 +08:00
Help: Explicitly state that some file generations are lazy
Fixes: #16856
This commit is contained in:
@@ -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
|
If the input file is modified the build system will re-run CMake to
|
||||||
re-configure the file and generate the build system again.
|
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:
|
The arguments are:
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
Exactly one ``CONTENT`` or ``INPUT`` option must be given. A specific
|
||||||
``OUTPUT`` file may be named by at most one invocation of ``file(GENERATE)``.
|
``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
|
Generated files are modified and their timestamp updated on subsequent cmake
|
||||||
is changed.
|
runs only if their content is changed.
|
||||||
|
|
||||||
Note also that ``file(GENERATE)`` does not create the output file until the
|
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
|
generation phase. The output file will not yet have been written when the
|
||||||
|
|||||||
Reference in New Issue
Block a user