summaryrefslogtreecommitdiffstats
path: root/cmake/Modules
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-01-29 13:48:05 +0100
committerMauro Sardara <msardara@cisco.com>2019-01-29 13:48:05 +0100
commitfce54a724e80c7442c98da8bf491ce60eb762db1 (patch)
treeadcca9315ebd47a86e9dd897798b3e12de7e8de0 /cmake/Modules
parent72f060e86926fa25955bd31157086ca4f0889940 (diff)
[HICN-10] Fix check of environment variable BUILD_NUMBER
Change-Id: Ic6e6a2137cbdf7fb29b62c5e2d2a051a9e8aae1b Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'cmake/Modules')
-rwxr-xr-xcmake/Modules/Packager.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/Packager.cmake b/cmake/Modules/Packager.cmake
index 9a64488e4..b6a954224 100755
--- a/cmake/Modules/Packager.cmake
+++ b/cmake/Modules/Packager.cmake
@@ -51,7 +51,7 @@ macro(make_packages)
list(GET VER 1 commit_num)
list(GET VER 2 commit_name)
- if ($ENV{BUILD_NUMBER} STREQUAL "")
+ if (NOT DEFINED ENV{BUILD_NUMBER})
set(bld "b1")
else()
set(bld "b$ENV{BUILD_NUMBER}")