summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-09-08 22:32:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-09-08 22:32:40 (GMT)
commit012d116260ee6f7eafc72f44949af48918ff1691 (patch)
treed501aa5ec57540e9869de0beebf9060e65086a21 /Help/command
parent26791532be40d882628e050a5e456e248564e7c4 (diff)
parentcbb727ca6b394aed1852d47be052a73ed8450bee (diff)
downloadCMake-012d116260ee6f7eafc72f44949af48918ff1691.zip
CMake-012d116260ee6f7eafc72f44949af48918ff1691.tar.gz
CMake-012d116260ee6f7eafc72f44949af48918ff1691.tar.bz2
Merge topic 'cmp0168-populate-nondeclare-regression'
cbb727ca6b FetchContent: Don't update verify script timestamp if it doesn't change 795e7b44f2 Help: file(CONFIGURE) only updates output file timestamp if it changes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9799
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/file.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst
index 0ac49f4..a72b652 100644
--- a/Help/command/file.rst
+++ b/Help/command/file.rst
@@ -302,7 +302,9 @@ Writing
variable values referenced as ``@VAR@`` or ``${VAR}`` contained therein. The
substitution rules behave the same as the :command:`configure_file` command.
In order to match :command:`configure_file`'s behavior, generator expressions
- are not supported for both ``OUTPUT`` and ``CONTENT``.
+ are not supported for both ``OUTPUT`` and ``CONTENT``, and the output file
+ is only modified and its timestamp updated if the content is changed or the
+ file previously didn't exist.
The arguments are: