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.
This commit is contained in:
Bernhard M. Wiedemann
2017-01-25 07:15:40 +01:00
committed by Brad King
parent a007f15344
commit 243aed525a
16 changed files with 47 additions and 0 deletions

View File

@@ -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
""""