From 656e776498fe862b1b388435568c5bb72213cb16 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 2 Dec 2020 12:54:27 +0100 Subject: [BUILD] Include branch and build timestamp in binaries --- cmake/GenerateBuild.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/GenerateBuild.cmake') diff --git a/cmake/GenerateBuild.cmake b/cmake/GenerateBuild.cmake index 020eb84..96b2906 100644 --- a/cmake/GenerateBuild.cmake +++ b/cmake/GenerateBuild.cmake @@ -5,6 +5,7 @@ # set current build type of the project set(DNBD3_BUILD ${BUILD_TYPE}) +string(TIMESTAMP DNBD3_BUILD_DATE "%Y-%m-%d" UTC) # write dnbd3 build type into a new C source file based on the specified build file template configure_file(${BUILD_INPUT_FILE_TEMPLATE} ${BUILD_OUTPUT_FILE}) -- cgit v1.2.3-55-g7522