Skip to content

Commit f9c4660

Browse files
author
gsherman
committedJul 18, 2007
Modified script so it works properly on OS X.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7076 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a6c46df commit f9c4660

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed
 

‎configure

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
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" ]
425
then
526
echo "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
930
then run this script again or see:
1031
http://wiki.qgis.org/qgiswiki/Building_with_CMake for more information."
1132
else
12-
echo "Congratulations -- You have CMake installed in $CMAKE
33+
echo "Congratulations -- CMake is already installed on your system.
1334
"
1435
echo "To build QGIS:
1536
mkdir build

0 commit comments

Comments
 (0)
Please sign in to comment.