[QGIS Commit] r14385 - trunk/qgis/cmake

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Oct 16 10:52:43 EDT 2010


Author: kyngchaos
Date: 2010-10-16 07:52:43 -0700 (Sat, 16 Oct 2010)
New Revision: 14385

Modified:
   trunk/qgis/cmake/FindGDAL.cmake
   trunk/qgis/cmake/FindGRASS.cmake
   trunk/qgis/cmake/FindGSL.cmake
   trunk/qgis/cmake/FindPostgres.cmake
   trunk/qgis/cmake/FindProj.cmake
   trunk/qgis/cmake/FindSPATIALITE.cmake
   trunk/qgis/cmake/FindSqlite3.cmake
Log:
find more Mac frameworks; extra default search paths for postgres

Modified: trunk/qgis/cmake/FindGDAL.cmake
===================================================================
--- trunk/qgis/cmake/FindGDAL.cmake	2010-10-16 14:24:13 UTC (rev 14384)
+++ trunk/qgis/cmake/FindGDAL.cmake	2010-10-16 14:52:43 UTC (rev 14385)
@@ -43,7 +43,7 @@
 
     # try to use framework on mac
     IF (APPLE)
-      SET (GDAL_MAC_PATH /Library/Frameworks/GDAL.framework/unix/bin)
+      SET (GDAL_MAC_PATH /Library/Frameworks/GDAL.framework/Programs)
     ENDIF (APPLE)
 
     SET(GDAL_CONFIG_PREFER_PATH "$ENV{GDAL_HOME}/bin" CACHE STRING "preferred path to GDAL (gdal-config)")

Modified: trunk/qgis/cmake/FindGRASS.cmake
===================================================================
--- trunk/qgis/cmake/FindGRASS.cmake	2010-10-16 14:24:13 UTC (rev 14384)
+++ trunk/qgis/cmake/FindGRASS.cmake	2010-10-16 14:52:43 UTC (rev 14385)
@@ -50,6 +50,7 @@
 IF (APPLE)
   SET (GRASS_PATHS ${GRASS_PATHS}
     /Applications/GRASS-6.3.app/Contents/MacOS
+    /Applications/GRASS-6.4.app/Contents/MacOS
     /Applications/GRASS.app/Contents/Resources
   )
 ENDIF (APPLE)

Modified: trunk/qgis/cmake/FindGSL.cmake
===================================================================
--- trunk/qgis/cmake/FindGSL.cmake	2010-10-16 14:24:13 UTC (rev 14384)
+++ trunk/qgis/cmake/FindGSL.cmake	2010-10-16 14:52:43 UTC (rev 14385)
@@ -46,9 +46,14 @@
   SET (GSL_LIBRARIES ${GSL_LIB} ${GSLCBLAS_LIB})
 ELSE(WIN32)
   IF(UNIX) 
+    # try to use framework on mac
+    IF (APPLE)
+      SET (GSL_MAC_PATH /Library/Frameworks/GSL.framework/Programs)
+    ENDIF (APPLE)
     SET(GSL_CONFIG_PREFER_PATH "$ENV{GSL_HOME}/bin" CACHE STRING "preferred path to GSL (gsl-config)")
     FIND_PROGRAM(GSL_CONFIG gsl-config
       ${GSL_CONFIG_PREFER_PATH}
+      ${GSL_MAC_PATH}
       /usr/local/bin/
       /usr/bin/
       )

Modified: trunk/qgis/cmake/FindPostgres.cmake
===================================================================
--- trunk/qgis/cmake/FindPostgres.cmake	2010-10-16 14:24:13 UTC (rev 14384)
+++ trunk/qgis/cmake/FindPostgres.cmake	2010-10-16 14:52:43 UTC (rev 14385)
@@ -40,6 +40,8 @@
     SET(POSTGRES_CONFIG_PREFER_PATH "$ENV{POSTGRES_HOME}/bin" CACHE STRING "preferred path to PG (pg_config)")
     FIND_PROGRAM(POSTGRES_CONFIG pg_config
       ${POSTGRES_CONFIG_PREFER_PATH}
+      /usr/local/pgsql/bin/
+      /usr/local/bin/
       /usr/bin/
       )
     # MESSAGE("DBG POSTGRES_CONFIG ${POSTGRES_CONFIG}")

Modified: trunk/qgis/cmake/FindProj.cmake
===================================================================
--- trunk/qgis/cmake/FindProj.cmake	2010-10-16 14:24:13 UTC (rev 14384)
+++ trunk/qgis/cmake/FindProj.cmake	2010-10-16 14:52:43 UTC (rev 14385)
@@ -11,16 +11,22 @@
 #    PROJ_INCLUDE_DIR
 #    PROJ_LIBRARY
 
-
 # FIND_PATH and FIND_LIBRARY normally search standard locations
 # before the specified paths. To search non-standard paths first,
 # FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
 # and then again with no specified paths to search the default
 # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
 # searching for the same item do nothing. 
+
+# try to use framework on mac
+IF (APPLE)
+  SET (PROJ_MAC_INC_PATH /Library/Frameworks/PROJ.framework/Headers)
+ENDIF (APPLE)
+
 FIND_PATH(PROJ_INCLUDE_DIR proj_api.h
   "$ENV{LIB_DIR}/include/proj"
   "$ENV{LIB_DIR}/include"
+  ${PROJ_MAC_INC_PATH}
   #mingw
   c:/msys/local/include
   NO_DEFAULT_PATH

Modified: trunk/qgis/cmake/FindSPATIALITE.cmake
===================================================================
--- trunk/qgis/cmake/FindSPATIALITE.cmake	2010-10-16 14:24:13 UTC (rev 14384)
+++ trunk/qgis/cmake/FindSPATIALITE.cmake	2010-10-16 14:52:43 UTC (rev 14385)
@@ -18,9 +18,12 @@
 # and then again with no specified paths to search the default
 # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
 # searching for the same item do nothing. 
+
 FIND_PATH(SPATIALITE_INCLUDE_DIR spatialite.h
   "$ENV{LIB_DIR}/include"
   "$ENV{LIB_DIR}/include/spatialite"
+  # try to use SQLite3 framework on mac, should be set from SQLite3 check
+  ${SQLITE3_MAC_INC_PATH}
   #mingw
   c:/msys/local/include
   NO_DEFAULT_PATH

Modified: trunk/qgis/cmake/FindSqlite3.cmake
===================================================================
--- trunk/qgis/cmake/FindSqlite3.cmake	2010-10-16 14:24:13 UTC (rev 14384)
+++ trunk/qgis/cmake/FindSqlite3.cmake	2010-10-16 14:52:43 UTC (rev 14385)
@@ -18,9 +18,16 @@
 # and then again with no specified paths to search the default
 # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
 # searching for the same item do nothing. 
+
+# try to use framework on mac
+IF (APPLE)
+  SET (SQLITE3_MAC_INC_PATH /Library/Frameworks/SQLite3.framework/Headers)
+ENDIF (APPLE)
+
 FIND_PATH(SQLITE3_INCLUDE_DIR sqlite3.h
   "$ENV{LIB_DIR}/include"
   "$ENV{LIB_DIR}/include/sqlite"
+  ${SQLITE3_MAC_INC_PATH}
   #mingw
   c:/msys/local/include
   NO_DEFAULT_PATH



More information about the QGIS-commit mailing list