diff --git a/CMakeLists.txt b/CMakeLists.txt index 409f2105..144dab11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,7 +254,11 @@ endif(NATS_BUILD_WITH_TLS) set(NATS_VERSION_MAJOR 3) set(NATS_VERSION_MINOR 10) set(NATS_VERSION_PATCH 0) -set(NATS_VERSION_SUFFIX "-beta") +if(CMAKE_BUILD_TYPE STREQUAL "Release") + set(NATS_VERSION_SUFFIX "") +else() + set(NATS_VERSION_SUFFIX "-beta") +endif() set(NATS_VERSION_REQUIRED_NUMBER 0x030900)