Skip to content

Commit 21f2350

Browse files
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 <[email protected]>
1 parent aee6d10 commit 21f2350

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ if(UNIX)
2222
set(package_input_dir ${IGDRCL_BINARY_DIR}/packageinput)
2323
set(package_output_dir ${IGDRCL_BINARY_DIR}/packages)
2424

25-
if(NOT NEO_VERSION_MAJOR)
25+
if(NOT DEFINED NEO_VERSION_MAJOR)
2626
set(NEO_VERSION_MAJOR 1)
2727
endif()
28-
if(NOT NEO_VERSION_MINOR)
28+
if(NOT DEFINED NEO_VERSION_MINOR)
2929
set(NEO_VERSION_MINOR 0)
3030
endif()
31-
if(NOT NEO_VERSION_BUILD)
31+
if(NOT DEFINED NEO_VERSION_BUILD)
3232
set(NEO_VERSION_BUILD 0)
3333
endif()
3434

0 commit comments

Comments
 (0)