summaryrefslogtreecommitdiffstats
path: root/src/BuildInfo.h.cmake
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-09-10 17:07:00 +0200
committerTycho <work.tycho+git@gmail.com>2014-09-10 17:07:00 +0200
commit27be1799392e89b2b67121ea6febd51c2b9ec4fb (patch)
tree291f4dd8941c94ebec2d17b1605d13fa0f5f4dab /src/BuildInfo.h.cmake
parentMerge pull request #1402 from Masy98/Sounds (diff)
downloadcuberite-27be1799392e89b2b67121ea6febd51c2b9ec4fb.tar
cuberite-27be1799392e89b2b67121ea6febd51c2b9ec4fb.tar.gz
cuberite-27be1799392e89b2b67121ea6febd51c2b9ec4fb.tar.bz2
cuberite-27be1799392e89b2b67121ea6febd51c2b9ec4fb.tar.lz
cuberite-27be1799392e89b2b67121ea6febd51c2b9ec4fb.tar.xz
cuberite-27be1799392e89b2b67121ea6febd51c2b9ec4fb.tar.zst
cuberite-27be1799392e89b2b67121ea6febd51c2b9ec4fb.zip
Diffstat (limited to 'src/BuildInfo.h.cmake')
-rw-r--r--src/BuildInfo.h.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/BuildInfo.h.cmake b/src/BuildInfo.h.cmake
new file mode 100644
index 000000000..6337dab3e
--- /dev/null
+++ b/src/BuildInfo.h.cmake
@@ -0,0 +1,15 @@
+
+#pragma once
+
+#cmakedefine BUILD_ID
+
+#ifdef BUILD_ID
+
+#undef BUILD_ID
+
+#define BUILD_SERIES_NAME "@BUILD_SERIES_NAME@"
+#define BUILD_ID "@BUILD_ID@"
+#define BUILD_COMMIT_ID "@BUILD_COMMIT_ID@"
+#define BUILD_DATETIME "@BUILD_DATETIME@"
+#endif
+