File tree Expand file tree Collapse file tree 7 files changed +26
-2
lines changed Expand file tree Collapse file tree 7 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ ELSE(WIN32)
43
43
44
44
# try to use framework on mac
45
45
IF (APPLE )
46
- SET (GDAL_MAC_PATH /Library/Frameworks/GDAL.framework/unix/bin )
46
+ SET (GDAL_MAC_PATH /Library/Frameworks/GDAL.framework/Programs )
47
47
ENDIF (APPLE )
48
48
49
49
SET (GDAL_CONFIG_PREFER_PATH "$ENV{GDAL_HOME} /bin" CACHE STRING "preferred path to GDAL (gdal-config)" )
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ SET (GRASS_PATHS ${GRASS_PREFIX} /usr/lib/grass c:/msys/local /opt/grass)
50
50
IF (APPLE )
51
51
SET (GRASS_PATHS ${GRASS_PATHS}
52
52
/Applications/GRASS-6.3.app/Contents/MacOS
53
+ /Applications/GRASS-6.4.app/Contents/MacOS
53
54
/Applications/GRASS.app/Contents/Resources
54
55
)
55
56
ENDIF (APPLE )
Original file line number Diff line number Diff line change @@ -46,9 +46,14 @@ IF(WIN32)
46
46
SET (GSL_LIBRARIES ${GSL_LIB} ${GSLCBLAS_LIB} )
47
47
ELSE (WIN32 )
48
48
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 )
49
53
SET (GSL_CONFIG_PREFER_PATH "$ENV{GSL_HOME} /bin" CACHE STRING "preferred path to GSL (gsl-config)" )
50
54
FIND_PROGRAM (GSL_CONFIG gsl-config
51
55
${GSL_CONFIG_PREFER_PATH}
56
+ ${GSL_MAC_PATH}
52
57
/usr/local/bin/
53
58
/usr/bin/
54
59
)
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ ELSE(WIN32)
40
40
SET (POSTGRES_CONFIG_PREFER_PATH "$ENV{POSTGRES_HOME} /bin" CACHE STRING "preferred path to PG (pg_config)" )
41
41
FIND_PROGRAM (POSTGRES_CONFIG pg_config
42
42
${POSTGRES_CONFIG_PREFER_PATH}
43
+ /usr/local/pgsql/bin/
44
+ /usr/local/bin/
43
45
/usr/bin/
44
46
)
45
47
# MESSAGE("DBG POSTGRES_CONFIG ${POSTGRES_CONFIG}")
Original file line number Diff line number Diff line change 11
11
# PROJ_INCLUDE_DIR
12
12
# PROJ_LIBRARY
13
13
14
-
15
14
# FIND_PATH and FIND_LIBRARY normally search standard locations
16
15
# before the specified paths. To search non-standard paths first,
17
16
# FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
18
17
# and then again with no specified paths to search the default
19
18
# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
20
19
# 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
+
21
26
FIND_PATH (PROJ_INCLUDE_DIR proj_api.h
22
27
"$ENV{LIB_DIR} /include/proj"
23
28
"$ENV{LIB_DIR} /include"
29
+ ${PROJ_MAC_INC_PATH}
24
30
#mingw
25
31
c:/msys/local/include
26
32
NO_DEFAULT_PATH
Original file line number Diff line number Diff line change 18
18
# and then again with no specified paths to search the default
19
19
# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
20
20
# searching for the same item do nothing.
21
+
21
22
FIND_PATH (SPATIALITE_INCLUDE_DIR spatialite.h
22
23
"$ENV{LIB_DIR} /include"
23
24
"$ENV{LIB_DIR} /include/spatialite"
25
+ # try to use SQLite3 framework on mac, should be set from SQLite3 check
26
+ ${SQLITE3_MAC_INC_PATH}
24
27
#mingw
25
28
c:/msys/local/include
26
29
NO_DEFAULT_PATH
Original file line number Diff line number Diff line change 18
18
# and then again with no specified paths to search the default
19
19
# locations. When an earlier FIND_* succeeds, subsequent FIND_*s
20
20
# 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
+
21
27
FIND_PATH (SQLITE3_INCLUDE_DIR sqlite3.h
22
28
"$ENV{LIB_DIR} /include"
23
29
"$ENV{LIB_DIR} /include/sqlite"
30
+ ${SQLITE3_MAC_INC_PATH}
24
31
#mingw
25
32
c:/msys/local/include
26
33
NO_DEFAULT_PATH
You can’t perform that action at this time.
0 commit comments