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 1
1
#! /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" ]
4
25
then
5
26
echo " QGIS now requires CMake to configure and build.
6
27
@@ -9,7 +30,7 @@ First install CMake (you can download it from http://www.cmake.org) and
9
30
then run this script again or see:
10
31
http://wiki.qgis.org/qgiswiki/Building_with_CMake for more information."
11
32
else
12
- echo " Congratulations -- You have CMake installed in $CMAKE
33
+ echo " Congratulations -- CMake is already installed on your system.
13
34
"
14
35
echo " To build QGIS:
15
36
mkdir build
You can’t perform that action at this time.
0 commit comments