summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-09-06 05:48:38 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-09-06 05:48:38 (GMT)
commit795e7b44f28923db56801c455cfada023499fc80 (patch)
tree3705e8db3edfae1d44b263ad6ede2270d55111c7
parent3cc9cb6ee206add5511b0094c96e525b234d4d81 (diff)
downloadCMake-795e7b44f28923db56801c455cfada023499fc80.zip
CMake-795e7b44f28923db56801c455cfada023499fc80.tar.gz
CMake-795e7b44f28923db56801c455cfada023499fc80.tar.bz2
Help: file(CONFIGURE) only updates output file timestamp if it changes
-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 5b9dfac..34e97e7 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: