summaryrefslogtreecommitdiffstats
path: root/cmake/GenerateBuild.cmake
diff options
context:
space:
mode:
authorSimon Rettberg2020-12-02 12:54:27 +0100
committerSimon Rettberg2020-12-02 12:54:27 +0100
commit656e776498fe862b1b388435568c5bb72213cb16 (patch)
tree855d21b40e4ccb9c07664e4922632da2a883d99d /cmake/GenerateBuild.cmake
parent[CLIENT] print help and version number correctly (diff)
downloaddnbd3-656e776498fe862b1b388435568c5bb72213cb16.tar.gz
dnbd3-656e776498fe862b1b388435568c5bb72213cb16.tar.xz
dnbd3-656e776498fe862b1b388435568c5bb72213cb16.zip
[BUILD] Include branch and build timestamp in binaries
Diffstat (limited to 'cmake/GenerateBuild.cmake')
-rw-r--r--cmake/GenerateBuild.cmake1
1 files changed, 1 insertions, 0 deletions
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})