diff --git a/BuildMacOS.sh b/BuildMacOS.sh index 38f333e96..7c7da1b72 100755 --- a/BuildMacOS.sh +++ b/BuildMacOS.sh @@ -2,6 +2,14 @@ export ROOT=`pwd` export NCORES=`sysctl -n hw.ncpu` +export CMAKE_INSTALLED=`which cmake` + +# Check if CMake is installed +if [[ -z "$CMAKE_INSTALLED" ]] +then + echo "Can't find CMake. Either is not installed or not in the PATH. Aborting!" + exit -1 +fi while getopts ":ih" opt; do case ${opt} in