fix clean_build.sh on travis
This commit is contained in:
parent
ec1d68912d
commit
87ff075c15
|
@ -5,8 +5,14 @@ mkdir build || exit 1
|
||||||
cd build || exit 1
|
cd build || exit 1
|
||||||
# some environments have cmake v2 as 'cmake' and v3 as 'cmake3'
|
# some environments have cmake v2 as 'cmake' and v3 as 'cmake3'
|
||||||
# check for cmake3 first then fallback to just cmake
|
# check for cmake3 first then fallback to just cmake
|
||||||
B_CMAKE=`type cmake3 2>/dev/null | cut -d' ' -f3`
|
B_CMAKE=`type cmake3 2>/dev/null`
|
||||||
[ $? -ne 0 -o "x$B_CMAKE" = "x" ] && B_CMAKE=cmake
|
if [ $? -eq 0 ]; then
|
||||||
|
B_CMAKE=`echo $B_CMAKE | cut -d' ' -f3`
|
||||||
|
else
|
||||||
|
B_CMAKE=cmake
|
||||||
|
fi
|
||||||
|
echo CMAKE=$B_CMAKE
|
||||||
|
exit 0
|
||||||
# default build configuration
|
# default build configuration
|
||||||
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}
|
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
|
|
Loading…
Reference in New Issue