CMakeLists.txt: Enforce UTC in timestamp generation

As discussed in the Debian bug report [2], the current timestamp
generation may not be reproducible due to not enforcing the time zone.
This patch enforces UTC as time zone information, which will satisfy
the reproducible-builds[1] requirement.

[1] https://reproducible-builds.org/
[2] https://bugs.debian.org/1068176

Signed-off-by: Boyuan Yang <byang@debian.org>
This commit is contained in:
Boyuan Yang 2024-04-01 18:40:01 -04:00
parent c28a28faf8
commit e62dded0f6

View file

@ -49,7 +49,7 @@ set(CMAKE_AUTORCC ON) # not included in the qt_standard_project_setup
#### Things required during configuration
block() # generate version.txt
string(TIMESTAMP build_time)
string(TIMESTAMP build_time UTC)
find_package(Git)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git" AND GIT_FOUND)
execute_process(