mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Modified script so it works properly on OS X.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7076 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
a6c46df64f
commit
f9c4660e84
27
configure
vendored
27
configure
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user