mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e6ed42d056
commit
fba685008b
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2018-2024 Intel Corporation
|
# Copyright (C) 2018-2025 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
@@ -78,6 +78,11 @@ if(NOT DEFINED NEO_VERSION_HOTFIX)
|
|||||||
set(NEO_VERSION_HOTFIX 0)
|
set(NEO_VERSION_HOTFIX 0)
|
||||||
endif()
|
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
|
# OpenCL package version
|
||||||
set(NEO_OCL_DRIVER_VERSION "${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_VERSION_BUILD}")
|
set(NEO_OCL_DRIVER_VERSION "${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_VERSION_BUILD}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user