Check if CMake is installed.

If not, abort the build script and display error message.
This commit is contained in:
Eisen Montalvo 2021-06-04 19:12:11 -07:00 committed by remi durand
parent bae1b4e7a7
commit 9667c4b323

View File

@ -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