setupenv: Cygwin workaround: Check for CMake on Windows

cygwin
BodgeMaster 2023-01-16 08:02:05 +01:00
parent 3d4049bc39
commit f7a6bdd119
1 changed files with 13 additions and 4 deletions

View File

@ -94,11 +94,20 @@ else
MISSING_DEPS=1
fi
if command -v cmake > /dev/null 2>&1; then
true
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
echo "WARNING: \`cmake\` is needed to build downloaded dependencies."
MISSING_DEPS=1
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