diff --git a/CMakeLists.txt b/CMakeLists.txt index 38a98f78c..96d02b648 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ endif() # Set default values for cache entries and set the MaxScale version include(cmake/defaults.cmake) -include(VERSION.cmake) +include(VERSION21.cmake) include(ExternalProject) set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.") diff --git a/VERSION.cmake b/VERSION20.cmake similarity index 100% rename from VERSION.cmake rename to VERSION20.cmake diff --git a/VERSION21.cmake b/VERSION21.cmake new file mode 100644 index 000000000..c79617932 --- /dev/null +++ b/VERSION21.cmake @@ -0,0 +1,14 @@ +# MaxScale version for CMake +# +# This file contains cache values for CMake which control MaxScale's version +# number. + +set(MAXSCALE_VERSION_MAJOR "2" CACHE STRING "Major version") +set(MAXSCALE_VERSION_MINOR "1" CACHE STRING "Minor version") +set(MAXSCALE_VERSION_PATCH "3" CACHE STRING "Patch version") + +# This should only be incremented if a package is rebuilt +set(MAXSCALE_BUILD_NUMBER 1 CACHE STRING "Release number") + +set(MAXSCALE_VERSION_NUMERIC "${MAXSCALE_VERSION_MAJOR}.${MAXSCALE_VERSION_MINOR}.${MAXSCALE_VERSION_PATCH}") +set(MAXSCALE_VERSION "${MAXSCALE_VERSION_MAJOR}.${MAXSCALE_VERSION_MINOR}.${MAXSCALE_VERSION_PATCH}")