mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
package: fix package version deduction
We should check if variables NEO_VERSION_MAJOR, NEO_VERSION_MINOR and NEO_VERSION_BUILD are defined instead of checking for values. this allows to set values like '0' which was expanded to false. Change-Id: I0ceaf0e19053cae29bee78e77f574b92771e2d3f Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
aee6d10f1f
commit
21f2350923
@@ -22,13 +22,13 @@ if(UNIX)
|
||||
set(package_input_dir ${IGDRCL_BINARY_DIR}/packageinput)
|
||||
set(package_output_dir ${IGDRCL_BINARY_DIR}/packages)
|
||||
|
||||
if(NOT NEO_VERSION_MAJOR)
|
||||
if(NOT DEFINED NEO_VERSION_MAJOR)
|
||||
set(NEO_VERSION_MAJOR 1)
|
||||
endif()
|
||||
if(NOT NEO_VERSION_MINOR)
|
||||
if(NOT DEFINED NEO_VERSION_MINOR)
|
||||
set(NEO_VERSION_MINOR 0)
|
||||
endif()
|
||||
if(NOT NEO_VERSION_BUILD)
|
||||
if(NOT DEFINED NEO_VERSION_BUILD)
|
||||
set(NEO_VERSION_BUILD 0)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user