diff --git a/download_and_compile.sh b/download_and_compile.sh index a8e5dbc..fc34f67 100755 --- a/download_and_compile.sh +++ b/download_and_compile.sh @@ -295,7 +295,11 @@ if [[ "$(declare -p WHATTOBUILD)" =~ '['([0-9]+)']="CMAKE"' ]]; then _make cmake CMAKE="$INSTALL_DIR_CMAKE/bin/cmake" else - CMAKE=cmake + if [ -x "$INSTALL_DIR_CMAKE/bin/cmake" ]; then + CMAKE="$INSTALL_DIR_CMAKE/bin/cmake" + else + CMAKE=cmake + fi fi #######################################################