diff options
author | Brad King <brad.king@kitware.com> | 2017-07-11 11:35:08 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-07-11 11:35:27 (GMT) |
commit | 59e52b30416b3c1731ec56207baad2ef0295580b (patch) | |
tree | 079a70e75b886da38bb198afc769db4df2e30632 /Help/command | |
parent | 8d5ec219288b05379f19a23a0a0b4c8b76a17712 (diff) | |
parent | c7d81e16cb0f2023098ca64e33a4408b8ba80287 (diff) | |
download | CMake-59e52b30416b3c1731ec56207baad2ef0295580b.zip CMake-59e52b30416b3c1731ec56207baad2ef0295580b.tar.gz CMake-59e52b30416b3c1731ec56207baad2ef0295580b.tar.bz2 |
Merge topic 'doc_configure_file'
c7d81e16 Help: Explicitly state that some file generations are lazy
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1025
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/configure_file.rst | 2 | ||||
-rw-r--r-- | Help/command/file.rst | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Help/command/configure_file.rst b/Help/command/configure_file.rst index 75ec441..e08c573 100644 --- a/Help/command/configure_file.rst +++ b/Help/command/configure_file.rst @@ -45,6 +45,8 @@ will be replaced, if ``VAR`` is defined, with:: 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: diff --git a/Help/command/file.rst b/Help/command/file.rst index 7afb715..97466ff 100644 --- a/Help/command/file.rst +++ b/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 |