From 3640fbfa138be5c1ac3b8b84d8a813886a48dfe1 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 5 Oct 2020 09:46:52 +0200 Subject: [HICN-643] Fix get_next_version_script and version numbers. Signed-off-by: Mauro Sardara Change-Id: Ib1118a4b8d25209aa9dd8335ee900a326daac45b --- cmake/Modules/Packager.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmake/Modules') 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") -- cgit 1.2.3-korg