Skip to content
Permalink
Browse files
Modified script so it works properly on OS X.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7076 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jul 18, 2007
1 parent 1f23e7e commit c789f6a7d7e1dcb3a6521870f30efa040c82c291
Showing with 24 additions and 3 deletions.
  1. +24 −3 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.
@@ -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

0 comments on commit c789f6a

Please sign in to comment.