From b436b0bfd9bde68ae83b35e57b1e9766ed9b806d Mon Sep 17 00:00:00 2001 From: Andreas Schleifer Date: Sat, 6 Jun 2020 00:40:35 +0200 Subject: [PATCH] make cmake builds reproducible --- cmake/Conky.cmake | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cmake/Conky.cmake b/cmake/Conky.cmake index 2792dab6..b769eed4 100644 --- a/cmake/Conky.cmake +++ b/cmake/Conky.cmake @@ -157,13 +157,11 @@ endif(NOT RELEASE) mark_as_advanced(APP_AWK APP_WC APP_DATE APP_UNAME) -# BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date) BUILD_ARCH="$(uname -# -sr) ($(uname -m))" -execute_process(COMMAND ${APP_DATE} - RESULT_VARIABLE RETVAL - OUTPUT_VARIABLE BUILD_DATE - OUTPUT_STRIP_TRAILING_WHITESPACE) -execute_process(COMMAND ${APP_UNAME} -srm +# BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date --utc +# --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d) +# BUILD_ARCH="$(uname -sm)" +STRING(TIMESTAMP BUILD_DATE "%Y-%m-%d" UTC) +execute_process(COMMAND ${APP_UNAME} -sm RESULT_VARIABLE RETVAL OUTPUT_VARIABLE BUILD_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE)