mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 11:49:08 +08:00
Check if CMake is installed.
If not, abort the build script and display error message.
This commit is contained in:
parent
bae1b4e7a7
commit
9667c4b323
@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
export ROOT=`pwd`
|
export ROOT=`pwd`
|
||||||
export NCORES=`sysctl -n hw.ncpu`
|
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
|
while getopts ":ih" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user