File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed
Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
2- CMAKE=` which cmake`
3- if [ " $CMAKE " = " " ]
2+ # CMAKE=`which xmake`
3+ # if [ "$CMAKE" = "" || grep -q "no xmake" "$CMAKE" ]
4+ NOCMAKE=0
5+ case $OSTYPE in
6+ darwin* )
7+ CMAKE=` which cmake| awk ' {print $1 $2}' `
8+ if [ " $CMAKE " = " nocmake" ]
9+ then
10+ NOCMAKE=1
11+ fi
12+ ;;
13+
14+ * )
15+ CMAKE=` which cmake`
16+ if [ " $CMAKE " = " " ]
17+ then
18+ NOCMAKE=1
19+ fi
20+ ;;
21+ esac
22+ # echo "CMAKE IS $CMAKE"
23+
24+ if [ " $NOCMAKE " = " 1" ]
425then
526echo " QGIS now requires CMake to configure and build.
627
@@ -9,7 +30,7 @@ First install CMake (you can download it from http://www.cmake.org) and
930then run this script again or see:
1031http://wiki.qgis.org/qgiswiki/Building_with_CMake for more information."
1132else
12- echo " Congratulations -- You have CMake installed in $CMAKE
33+ echo " Congratulations -- CMake is already installed on your system.
1334 "
1435echo " To build QGIS:
1536 mkdir build
You can’t perform that action at this time.
0 commit comments