diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-10-05 09:46:52 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2020-10-05 09:46:52 +0200 |
commit | 3640fbfa138be5c1ac3b8b84d8a813886a48dfe1 (patch) | |
tree | 04ef02b25e3dac9c1c8cbf59359ef37217b67836 /cmake | |
parent | ecadd679e406f4ca1231dadfcbbfca61d010829c (diff) |
[HICN-643] Fix get_next_version_script and version numbers.
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ib1118a4b8d25209aa9dd8335ee900a326daac45b
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/Packager.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/Modules/Packager.cmake b/cmake/Modules/Packager.cmake index 94b0e96a7..e72d71024 100644 --- a/cmake/Modules/Packager.cmake +++ b/cmake/Modules/Packager.cmake @@ -26,10 +26,10 @@ function(get_next_version VERSION NEXT_VERSION) list(GET VER_NUMBERS 0 major) list(GET VER_NUMBERS 1 minor) - math(EXPR minor "${minor} + 3") + math(EXPR minor "${minor} + 4") if (minor GREATER 12) - set(minor "1") + math(EXPR minor "${minor} % 12") math(EXPR major "${major} + 1") endif() @@ -108,6 +108,7 @@ macro(make_packages) message(STATUS "Version: ${deb_ver}") get_next_version(${tag} next_version) + message(STATUS "Next version: ${next_version}") get_cmake_property(components COMPONENTS) list(REMOVE_ITEM components "Unspecified") |