summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@reproducible-builds.org>2020-12-25 10:14:21 +0000
committerVagrant Cascadian <vagrant@reproducible-builds.org>2020-12-31 07:47:53 +0000
commit7b334038faf5ff5f41f35caaec93deadf1fc6589 (patch)
tree65e06039ac5f9b783547a87b50d2684bb661d7d7
parent1089de2c8230ca949bc458686b3853278bb4b7ee (diff)
VersionInfo.cmake: Set BUILD_DATE using UTC timezone.
(Closes: #978064) While cmake respects SOURCE_DATE_EPOCH for the timestamp, the timestamp needs to be specified in UTC. https://reproducible-builds.org/docs/timestamps/
-rw-r--r--cmake/modules/VersionInfo.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/VersionInfo.cmake b/cmake/modules/VersionInfo.cmake
index 864a52e..cd495f2 100644
--- a/cmake/modules/VersionInfo.cmake
+++ b/cmake/modules/VersionInfo.cmake
@@ -6,7 +6,7 @@ else()
set( BUILD_VER 0 )
endif()
if(NOT BUILD_DATE)
- string(TIMESTAMP BUILD_DATE "%d.%m.%Y")
+ string(TIMESTAMP BUILD_DATE "%d.%m.%Y" UTC)
endif()
set( VERSION ${PROJECT_VERSION}.${BUILD_VER} )