mirror of https://github.com/debauchee/barrier.git
fix cmake3 detection in barebones environments
This commit is contained in:
parent
06d5080b42
commit
45805bbdcb
|
@ -5,7 +5,7 @@ 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=`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
|
[ $? -ne 0 -o "x$B_CMAKE" = "x" ] && B_CMAKE=cmake
|
||||||
# default build configuration
|
# default build configuration
|
||||||
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}
|
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}
|
||||||
|
|
Loading…
Reference in New Issue