diff options
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in index bae4efdb9..4505c87bc 100644 --- a/config.h.in +++ b/config.h.in @@ -184,11 +184,13 @@ #define RSPAMD_PREFIX "${CMAKE_INSTALL_PREFIX}" -#ifdef GIT_VERSION +#if defined(GIT_VERSION) && GIT_VERSION == 1 # define RVERSION "${RSPAMD_VERSION}" # define RID "${RSPAMD_ID}" +# define RSPAMD_VERSION_NUM 0x${RSPAMD_VERSION_MAJOR_NUM}${RSPAMD_VERSION_MINOR_NUM}${RSPAMD_VERSION_PATCH_NUM}${RSPAMD_ID}ULL #else # define RVERSION "${RSPAMD_VERSION}" +# define RSPAMD_VERSION_NUM 0x${RSPAMD_VERSION_MAJOR_NUM}${RSPAMD_VERSION_MINOR_NUM}${RSPAMD_VERSION_PATCH_NUM}0000000ULL # define RID "release" #endif |