Skip to content

Commit 68d43aa

Browse files
build: add extracting hotfix number from build version
Related-To: NEO-15269 Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com> Source: fba6850
1 parent 5eeeb8c commit 68d43aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

version.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ if(NOT DEFINED NEO_VERSION_HOTFIX)
1818
set(NEO_VERSION_HOTFIX 0)
1919
endif()
2020

21+
if(NEO_VERSION_BUILD MATCHES "^([0-9]+)\\.([0-9]+)$")
22+
set(NEO_VERSION_BUILD "${CMAKE_MATCH_1}")
23+
set(NEO_VERSION_HOTFIX "${CMAKE_MATCH_2}")
24+
endif()
25+
2126
# OpenCL package version
2227
set(NEO_OCL_DRIVER_VERSION "${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_VERSION_BUILD}")
2328

0 commit comments

Comments
 (0)