From 26102a0c66175bc39edbf484c994a21902e986dc Mon Sep 17 00:00:00 2001 From: costan Date: Wed, 20 Dec 2017 13:08:59 -0800 Subject: [PATCH] Fix generated version number in open source release. Lands GitHub PR #61. The patch was also independently contributed by Martin Gieseking . --- snappy-stubs-public.h.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snappy-stubs-public.h.in b/snappy-stubs-public.h.in index 3fd79bb..bb5b222 100644 --- a/snappy-stubs-public.h.in +++ b/snappy-stubs-public.h.in @@ -48,9 +48,9 @@ #include #endif // HAVE_SYS_UIO_H -#define SNAPPY_MAJOR ${SNAPPY_MAJOR} -#define SNAPPY_MINOR ${SNAPPY_MINOR} -#define SNAPPY_PATCHLEVEL ${SNAPPY_PATCHLEVEL} +#define SNAPPY_MAJOR ${PROJECT_VERSION_MAJOR} +#define SNAPPY_MINOR ${PROJECT_VERSION_MINOR} +#define SNAPPY_PATCHLEVEL ${PROJECT_VERSION_PATCH} #define SNAPPY_VERSION \ ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)