diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-10-06 11:49:39 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 11:49:39 -0700 |
| commit | ec33e4259afb8db02cba9a7f6dd08bc6129cfef3 (patch) | |
| tree | 8148e91a70b1df706f5735e9ec1e3c799cca518d | |
| parent | 773950e6e1344c435b66fd2a67baebfe4d41a44c (diff) | |
| download | nng-ec33e4259afb8db02cba9a7f6dd08bc6129cfef3.tar.gz nng-ec33e4259afb8db02cba9a7f6dd08bc6129cfef3.tar.bz2 nng-ec33e4259afb8db02cba9a7f6dd08bc6129cfef3.zip | |
Flag build packages as 2.0.0-dev.
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | include/nng/nng.h | 9 |
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. |
