summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2020-10-14 21:24:48 +0200
committerCharles Pigott <charlespigott@googlemail.com>2020-10-15 22:01:12 +0100
commitb6615b2cd4d45698ad6d2077c07a3faec2c0dcc9 (patch)
tree617acfdd28a2a3deff403efea957667dfad8f6d5 /cmake
parent5043f6feff6411f503ee8009444ace80744044db (diff)
downloadopenttd-b6615b2cd4d45698ad6d2077c07a3faec2c0dcc9.tar.xz
Fix: make reproducible by not embedding timestamps
By default gzip embeds a timestamps which makes building it twice not reproducible, passing -n skips this embedding behaviour. Motivation: https://reproducible-builds.org
Diffstat (limited to 'cmake')
-rw-r--r--cmake/InstallAndPackage.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/InstallAndPackage.cmake b/cmake/InstallAndPackage.cmake
index eafcfc21b..9c2ae1924 100644
--- a/cmake/InstallAndPackage.cmake
+++ b/cmake/InstallAndPackage.cmake
@@ -45,7 +45,7 @@ if(OPTION_INSTALL_FHS)
install(CODE
"
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${MAN_SOURCE_FILE} ${MAN_BINARY_FILE})
- execute_process(COMMAND gzip -9 -f ${MAN_BINARY_FILE})
+ execute_process(COMMAND gzip -9 -n -f ${MAN_BINARY_FILE})
"
COMPONENT manual)
install(FILES