aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
-rw-r--r--include/nng/nng.h9
2 files changed, 9 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f859a7d0..c67b49da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,8 +55,10 @@ set(NNG_MINOR_VERSION ${CMAKE_MATCH_1})
string(REGEX MATCH "NNG_PATCH_VERSION ([0-9]*)" _ ${nng_ver_h})
set(NNG_PATCH_VERSION ${CMAKE_MATCH_1})
string(REGEX MATCH "NNG_RELEASE_SUFFIX \"([a-z0-9]*)\"" _ ${nng_ver_h})
-if (NOT ("${CMAKE_MATCH_1}" STREQUAL ""))
- set(NNG_PRERELEASE "-${CMAKE_MATCH_1}")
+set(NNG_DEV_VERSION ${CMAKE_MATCH_1})
+if (NNG_DEV_VERSION)
+ message(STATUS "This is a prelease.")
+ set(NNG_PRERELEASE "-${NNG_DEV_VERSION}")
endif ()
set(NNG_ABI_SOVERSION 1)
diff --git a/include/nng/nng.h b/include/nng/nng.h
index 0508a991..a6edf017 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -56,11 +56,12 @@ extern "C" {
// NNG Library & API version.
// We use SemVer, and these versions are about the API, and
// may not necessarily match the ABI versions.
-#define NNG_MAJOR_VERSION 1
-#define NNG_MINOR_VERSION 8
+#define NNG_MAJOR_VERSION 2
+#define NNG_MINOR_VERSION 0
#define NNG_PATCH_VERSION 0
-#define NNG_RELEASE_SUFFIX \
- "" // if non-empty (i.e. "pre"), this is a pre-release
+
+// if non-empty (i.e. "pre"), this is a pre-release
+#define NNG_RELEASE_SUFFIX "dev"
// Maximum length of a socket address. This includes the terminating NUL.
// This limit is built into other implementations, so do not change it.