aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-18 14:24:01 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-18 14:24:01 +0000
commit5914e5c6e26b81c717bbc6bcaa8449645618c542 (patch)
treeaf1562fa8b2aff14d5dab9640795e34e6ac4dce7 /config.h.in
parent98e6d85b7953e52a5b8771cfc75c89fe10c68c60 (diff)
downloadrspamd-5914e5c6e26b81c717bbc6bcaa8449645618c542.tar.gz
rspamd-5914e5c6e26b81c717bbc6bcaa8449645618c542.zip
Support GIT_ID variable
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/config.h.in b/config.h.in
index 908278013..daa84f723 100644
--- a/config.h.in
+++ b/config.h.in
@@ -4,6 +4,7 @@
#cmakedefine BUILD_STATIC 1
#cmakedefine CURL_FOUND 1
#cmakedefine DEBUG_MODE 1
+#cmakedefine GIT_VERSION 1
#cmakedefine GLIB_COMPAT 1
#cmakedefine GLIB_HASH_COMPAT 1
#cmakedefine GLIB_RE_COMPAT 1
@@ -179,8 +180,15 @@
#define RSPAMD_WWWDIR "${WWWDIR}"
#define RSPAMD_PREFIX "${CMAKE_INSTALL_PREFIX}"
-#define RVERSION "${RSPAMD_VERSION}"
-#define RID "${RSPAMD_ID}"
+
+#ifdef GIT_VERSION
+# define RVERSION "${RSPAMD_VERSION}"
+# define RID "${RSPAMD_ID}"
+#else
+# define RVERSION "${RSPAMD_VERSION}"
+# define RID "release"
+#endif
+
#define RSPAMD_MASTER_SITE_URL "${RSPAMD_MASTER_SITE_URL}"
#define MODULES_NUM ${RSPAMD_MODULES_NUM}