summaryrefslogtreecommitdiff
path: root/Help/command
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2017-01-25 07:15:40 +0100
committerBrad King <brad.king@kitware.com>2017-01-26 10:21:41 -0500
commit243aed525a2fd8e5fe32139fd0f8d0cc0e40cc33 (patch)
tree43bb5febd43b6892d0736aad02bdbc1fa586a61d /Help/command
parenta007f15344007a6261209a409c6988b0e4c4b7e0 (diff)
downloadcmake-243aed525a2fd8e5fe32139fd0f8d0cc0e40cc33.tar.gz
cmTimestamp: Support SOURCE_DATE_EPOCH to override current time
See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable.
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/string.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst
index 77538f64c7..2c7847acc3 100644
--- a/Help/command/string.rst
+++ b/Help/command/string.rst
@@ -329,6 +329,12 @@ If no explicit ``<format string>`` is given it will default to:
Write a string which can be used as an identifier in C.
+.. note::
+
+ If the ``SOURCE_DATE_EPOCH`` environment variable is set,
+ its value will be used instead of the current time.
+ See https://reproducible-builds.org/specs/source-date-epoch/ for details.
+
UUID
""""