From fba685008bf528b56dee5319782cdb11eb1ac75c Mon Sep 17 00:00:00 2001 From: Jaroslaw Warchulski Date: Mon, 16 Jun 2025 12:32:11 +0000 Subject: [PATCH] build: add extracting hotfix number from build version Related-To: NEO-15269 Signed-off-by: Jaroslaw Warchulski --- version.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/version.cmake b/version.cmake index 1355b1226e..ce73512736 100644 --- a/version.cmake +++ b/version.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2018-2024 Intel Corporation +# Copyright (C) 2018-2025 Intel Corporation # # SPDX-License-Identifier: MIT # @@ -78,6 +78,11 @@ if(NOT DEFINED NEO_VERSION_HOTFIX) set(NEO_VERSION_HOTFIX 0) endif() +if(NEO_VERSION_BUILD MATCHES "^([0-9]+)\\.([0-9]+)$") + set(NEO_VERSION_BUILD "${CMAKE_MATCH_1}") + set(NEO_VERSION_HOTFIX "${CMAKE_MATCH_2}") +endif() + # OpenCL package version set(NEO_OCL_DRIVER_VERSION "${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_VERSION_BUILD}")