build: add extracting hotfix number from build version

Related-To: NEO-15269
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
Jaroslaw Warchulski
2025-06-16 12:32:11 +00:00
committed by Compute-Runtime-Automation
parent e6ed42d056
commit fba685008b

View File

@@ -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}")