fix cmake3 detection in barebones environments

This commit is contained in:
walker0643 2018-02-24 13:05:17 -05:00
parent 06d5080b42
commit 45805bbdcb
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ mkdir build || exit 1
cd build || exit 1
# some environments have cmake v2 as 'cmake' and v3 as 'cmake3'
# check for cmake3 first then fallback to just cmake
B_CMAKE=`which cmake3 2>/dev/null`
B_CMAKE=`type cmake3 2>/dev/null | cut -d' ' -f3`
[ $? -ne 0 -o "x$B_CMAKE" = "x" ] && B_CMAKE=cmake
# default build configuration
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}