File tree 2 files changed +21
-7
lines changed
2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 7
7
# GEOS_LIBRARY
8
8
9
9
10
+ # Normally there is no need to specify /usr/... paths because
11
+ # cmake will look there automatically. However the NO_DEFAULT_PATH
12
+ # prevents this behaviour allowing you to use no standard file
13
+ # locations in preference over standard ones. Note in this case
14
+ # you then need to explicitly add /usr and /usr/local prefixes
15
+ # to the search list. This applies both to FIND_PATH and FIND_LIBRARY
10
16
FIND_PATH (GEOS_INCLUDE_DIR geos.h
17
+ "$ENV{LIB_DIR} /include"
11
18
/usr/local/include
12
19
/usr/include
13
- #MSVC
14
- "$ENV{LIB_DIR} /include"
15
20
#mingw
16
21
c:/msys/local/include
22
+ NO_DEFAULT_PATH
17
23
)
18
24
19
25
FIND_LIBRARY (GEOS_LIBRARY NAMES geos PATHS
26
+ "$ENV{LIB_DIR} /lib"
20
27
/usr/local/lib
21
28
/usr/lib
22
- #MSVC
23
- "$ENV{LIB_DIR} /lib"
24
29
#mingw
25
30
c:/msys/local/lib
31
+ NO_DEFAULT_PATH
26
32
)
27
33
28
34
IF (GEOS_INCLUDE_DIR AND GEOS_LIBRARY)
Original file line number Diff line number Diff line change 7
7
# PROJ_LIBRARY
8
8
9
9
10
+ # Normally there is no need to specify /usr/... paths because
11
+ # cmake will look there automatically. However the NO_DEFAULT_PATH
12
+ # prevents this behaviour allowing you to use no standard file
13
+ # locations in preference over standard ones. Note in this case
14
+ # you then need to explicitly add /usr and /usr/local prefixes
15
+ # to the search list. This applies both to FIND_PATH and FIND_LIBRARY
10
16
FIND_PATH (PROJ_INCLUDE_DIR proj_api.h
17
+ "$ENV{LIB_DIR} /include/proj"
18
+ "$ENV{LIB_DIR} /include"
11
19
/usr/local/include
12
20
/usr/include
13
- #msvc
14
- "$ENV{LIB_DIR} /include/proj"
15
21
#mingw
16
22
c:/msys/local/include
23
+ NO_DEFAULT_PATH
17
24
)
18
25
19
26
FIND_LIBRARY (PROJ_LIBRARY NAMES proj PATHS
27
+ "$ENV{LIB_DIR} /lib"
20
28
/usr/local/lib
21
29
/usr/lib
22
- "$ENV{LIB_DIR} /lib"
23
30
c:/msys/local/lib
31
+ NO_DEFAULT_PATH
24
32
)
25
33
26
34
IF (PROJ_INCLUDE_DIR AND PROJ_LIBRARY)
You can’t perform that action at this time.
0 commit comments