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