mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 22:08:53 +08:00
refactor NEO_VERSION calculation
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b65d8909e4
commit
dae062a885
@@ -5,7 +5,6 @@
|
||||
#
|
||||
|
||||
if(UNIX)
|
||||
if(NOT DEFINED NEO_OCL_DRIVER_VERSION)
|
||||
find_program(GIT NAMES git)
|
||||
find_program(PYTHON_EXECUTABLE NAMES "python3")
|
||||
if((NOT "${GIT}" STREQUAL "GIT-NOTFOUND") AND (NOT "${PYTHON_EXECUTABLE}" STREQUAL "PYTHON_EXECUTABLE-NOTFOUND"))
|
||||
@@ -45,12 +44,6 @@ if(UNIX)
|
||||
message(STATUS "Computed OpenCL version minor is: ${NEO_OCL_VERSION_MINOR}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED NEO_VERSION_BUILD)
|
||||
set(NEO_VERSION_BUILD 0)
|
||||
endif()
|
||||
set(NEO_OCL_DRIVER_VERSION "${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_VERSION_BUILD}")
|
||||
endif()
|
||||
else()
|
||||
if(NOT DEFINED NEO_OCL_VERSION_MAJOR)
|
||||
set(NEO_OCL_VERSION_MAJOR 1)
|
||||
@@ -59,13 +52,12 @@ else()
|
||||
if(NOT DEFINED NEO_OCL_VERSION_MINOR)
|
||||
set(NEO_OCL_VERSION_MINOR 0)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED NEO_VERSION_BUILD)
|
||||
set(NEO_VERSION_BUILD 0)
|
||||
endif()
|
||||
set(NEO_OCL_DRIVER_VERSION "${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_VERSION_BUILD}")
|
||||
endif()
|
||||
|
||||
set(NEO_REVISION 0)
|
||||
else()
|
||||
find_program(GIT NAMES git)
|
||||
if(NOT "${GIT}" STREQUAL "GIT-NOTFOUND")
|
||||
if(IS_DIRECTORY ${NEO_SOURCE_DIR}/.git)
|
||||
@@ -77,6 +69,13 @@ if(NOT "${GIT}" STREQUAL "GIT-NOTFOUND")
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if(NOT DEFINED NEO_REVISION)
|
||||
set(NEO_REVISION 0)
|
||||
endif()
|
||||
|
||||
# OpenCL pacakge version
|
||||
set(NEO_OCL_DRIVER_VERSION "${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_VERSION_BUILD}")
|
||||
|
||||
# Level-Zero package version
|
||||
set(NEO_L0_VERSION_MAJOR 1)
|
||||
|
||||
Reference in New Issue
Block a user