Skip to content

Commit bb0bcd2

Browse files
author
kyngchaos
committedOct 16, 2010
find more Mac frameworks; extra default search paths for postgres
git-svn-id: http://svn.osgeo.org/qgis/trunk@14385 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a7babd9 commit bb0bcd2

File tree

7 files changed

+26
-2
lines changed

7 files changed

+26
-2
lines changed
 

‎cmake/FindGDAL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ELSE(WIN32)
4343

4444
# try to use framework on mac
4545
IF (APPLE)
46-
SET (GDAL_MAC_PATH /Library/Frameworks/GDAL.framework/unix/bin)
46+
SET (GDAL_MAC_PATH /Library/Frameworks/GDAL.framework/Programs)
4747
ENDIF (APPLE)
4848

4949
SET(GDAL_CONFIG_PREFER_PATH "$ENV{GDAL_HOME}/bin" CACHE STRING "preferred path to GDAL (gdal-config)")

‎cmake/FindGRASS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ SET (GRASS_PATHS ${GRASS_PREFIX} /usr/lib/grass c:/msys/local /opt/grass)
5050
IF (APPLE)
5151
SET (GRASS_PATHS ${GRASS_PATHS}
5252
/Applications/GRASS-6.3.app/Contents/MacOS
53+
/Applications/GRASS-6.4.app/Contents/MacOS
5354
/Applications/GRASS.app/Contents/Resources
5455
)
5556
ENDIF (APPLE)

‎cmake/FindGSL.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ IF(WIN32)
4646
SET (GSL_LIBRARIES ${GSL_LIB} ${GSLCBLAS_LIB})
4747
ELSE(WIN32)
4848
IF(UNIX)
49+
# try to use framework on mac
50+
IF (APPLE)
51+
SET (GSL_MAC_PATH /Library/Frameworks/GSL.framework/Programs)
52+
ENDIF (APPLE)
4953
SET(GSL_CONFIG_PREFER_PATH "$ENV{GSL_HOME}/bin" CACHE STRING "preferred path to GSL (gsl-config)")
5054
FIND_PROGRAM(GSL_CONFIG gsl-config
5155
${GSL_CONFIG_PREFER_PATH}
56+
${GSL_MAC_PATH}
5257
/usr/local/bin/
5358
/usr/bin/
5459
)

‎cmake/FindPostgres.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ ELSE(WIN32)
4040
SET(POSTGRES_CONFIG_PREFER_PATH "$ENV{POSTGRES_HOME}/bin" CACHE STRING "preferred path to PG (pg_config)")
4141
FIND_PROGRAM(POSTGRES_CONFIG pg_config
4242
${POSTGRES_CONFIG_PREFER_PATH}
43+
/usr/local/pgsql/bin/
44+
/usr/local/bin/
4345
/usr/bin/
4446
)
4547
# MESSAGE("DBG POSTGRES_CONFIG ${POSTGRES_CONFIG}")

‎cmake/FindProj.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@
1111
# PROJ_INCLUDE_DIR
1212
# PROJ_LIBRARY
1313

14-
1514
# FIND_PATH and FIND_LIBRARY normally search standard locations
1615
# before the specified paths. To search non-standard paths first,
1716
# FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
1817
# and then again with no specified paths to search the default
1918
# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
2019
# searching for the same item do nothing.
20+
21+
# try to use framework on mac
22+
IF (APPLE)
23+
SET (PROJ_MAC_INC_PATH /Library/Frameworks/PROJ.framework/Headers)
24+
ENDIF (APPLE)
25+
2126
FIND_PATH(PROJ_INCLUDE_DIR proj_api.h
2227
"$ENV{LIB_DIR}/include/proj"
2328
"$ENV{LIB_DIR}/include"
29+
${PROJ_MAC_INC_PATH}
2430
#mingw
2531
c:/msys/local/include
2632
NO_DEFAULT_PATH

‎cmake/FindSPATIALITE.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
# and then again with no specified paths to search the default
1919
# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
2020
# searching for the same item do nothing.
21+
2122
FIND_PATH(SPATIALITE_INCLUDE_DIR spatialite.h
2223
"$ENV{LIB_DIR}/include"
2324
"$ENV{LIB_DIR}/include/spatialite"
25+
# try to use SQLite3 framework on mac, should be set from SQLite3 check
26+
${SQLITE3_MAC_INC_PATH}
2427
#mingw
2528
c:/msys/local/include
2629
NO_DEFAULT_PATH

‎cmake/FindSqlite3.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@
1818
# and then again with no specified paths to search the default
1919
# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
2020
# searching for the same item do nothing.
21+
22+
# try to use framework on mac
23+
IF (APPLE)
24+
SET (SQLITE3_MAC_INC_PATH /Library/Frameworks/SQLite3.framework/Headers)
25+
ENDIF (APPLE)
26+
2127
FIND_PATH(SQLITE3_INCLUDE_DIR sqlite3.h
2228
"$ENV{LIB_DIR}/include"
2329
"$ENV{LIB_DIR}/include/sqlite"
30+
${SQLITE3_MAC_INC_PATH}
2431
#mingw
2532
c:/msys/local/include
2633
NO_DEFAULT_PATH

0 commit comments

Comments
 (0)
Please sign in to comment.