Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modified script so it works properly on OS X.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7076 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jul 18, 2007
1 parent a6c46df commit f9c4660
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions configure
@@ -1,6 +1,27 @@
#!/bin/sh
CMAKE=`which cmake`
if [ "$CMAKE" = "" ]
#CMAKE=`which xmake`
#if [ "$CMAKE" = "" || grep -q "no xmake" "$CMAKE" ]
NOCMAKE=0
case $OSTYPE in
darwin*)
CMAKE=`which cmake|awk '{print $1 $2}'`
if [ "$CMAKE" = "nocmake" ]
then
NOCMAKE=1
fi
;;

*)
CMAKE=`which cmake`
if [ "$CMAKE" = "" ]
then
NOCMAKE=1
fi
;;
esac
#echo "CMAKE IS $CMAKE"

if [ "$NOCMAKE" = "1" ]
then
echo "QGIS now requires CMake to configure and build.
Expand All @@ -9,7 +30,7 @@ First install CMake (you can download it from http://www.cmake.org) and
then run this script again or see:
http://wiki.qgis.org/qgiswiki/Building_with_CMake for more information."
else
echo "Congratulations -- You have CMake installed in $CMAKE
echo "Congratulations -- CMake is already installed on your system.
"
echo "To build QGIS:
mkdir build
Expand Down

0 comments on commit f9c4660

Please sign in to comment.