1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 12:42:41 +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) 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 # BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date --utc
# -sr) ($(uname -m))" # --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)
execute_process(COMMAND ${APP_DATE} # BUILD_ARCH="$(uname -sm)"
RESULT_VARIABLE RETVAL STRING(TIMESTAMP BUILD_DATE "%Y-%m-%d" UTC)
OUTPUT_VARIABLE BUILD_DATE execute_process(COMMAND ${APP_UNAME} -sm
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${APP_UNAME} -srm
RESULT_VARIABLE RETVAL RESULT_VARIABLE RETVAL
OUTPUT_VARIABLE BUILD_ARCH OUTPUT_VARIABLE BUILD_ARCH
OUTPUT_STRIP_TRAILING_WHITESPACE) OUTPUT_STRIP_TRAILING_WHITESPACE)