setupenv: Cygwin workaround: Check for CMake on Windows
parent
3d4049bc39
commit
f7a6bdd119
|
@ -94,12 +94,21 @@ else
|
||||||
MISSING_DEPS=1
|
MISSING_DEPS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if uname -s | tr [:upper:] [:lower:] | grep cygwin >/dev/null; then
|
||||||
|
if PATH=$(echo $PATH | sed 's/:/\n/g' | grep cygdrive | tr '\n' ':') command -v cmake > /dev/null 2>&1; then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
echo "WARNING: \`cmake\` needs to be installed on Windows directly to build downloaded dependencies."
|
||||||
|
MISSING_DEPS=1
|
||||||
|
fi
|
||||||
|
else
|
||||||
if command -v cmake > /dev/null 2>&1; then
|
if command -v cmake > /dev/null 2>&1; then
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
echo "WARNING: \`cmake\` is needed to build downloaded dependencies."
|
echo "WARNING: \`cmake\` is needed to build downloaded dependencies."
|
||||||
MISSING_DEPS=1
|
MISSING_DEPS=1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$CXX" ]; then
|
if [ -z "$CXX" ]; then
|
||||||
if command -v c++ > /dev/null 2>&1; then
|
if command -v c++ > /dev/null 2>&1; then
|
||||||
|
|
Loading…
Reference in New Issue