setupenv: Cygwin workaround: Check for CMake on Windows
parent
3d4049bc39
commit
f7a6bdd119
|
@ -94,11 +94,20 @@ else
|
||||||
MISSING_DEPS=1
|
MISSING_DEPS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v cmake > /dev/null 2>&1; then
|
if uname -s | tr [:upper:] [:lower:] | grep cygwin >/dev/null; then
|
||||||
true
|
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
|
else
|
||||||
echo "WARNING: \`cmake\` is needed to build downloaded dependencies."
|
if command -v cmake > /dev/null 2>&1; then
|
||||||
MISSING_DEPS=1
|
true
|
||||||
|
else
|
||||||
|
echo "WARNING: \`cmake\` is needed to build downloaded dependencies."
|
||||||
|
MISSING_DEPS=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CXX" ]; then
|
if [ -z "$CXX" ]; then
|
||||||
|
|
Loading…
Reference in New Issue