1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 20:31:17 +00:00

make cmake builds reproducible

This commit is contained in:
Andreas Schleifer 2020-06-06 00:40:35 +02:00 committed by Brenden Matthews
parent 1c599a2752
commit b436b0bfd9

View File

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