File tree 4 files changed +40
-47
lines changed
4 files changed +40
-47
lines changed Original file line number Diff line number Diff line change 7
7
# EXPAT_INCLUDE_DIR
8
8
# EXPAT_LIBRARY
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
16
- FIND_PATH (EXPAT_INCLUDE_DIR expat.h
10
+ # FIND_PATH and FIND_LIBRARY normally search standard locations
11
+ # before the specified paths. To search non-standard paths first,
12
+ # FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
13
+ # and then again with no specified paths to search the default
14
+ # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
15
+ # searching for the same item do nothing.
16
+ FIND_PATH (EXPAT_INCLUDE_DIR expat.h
17
17
"$ENV{LIB_DIR} /include/"
18
18
"$ENV{LIB_DIR} /include/expat"
19
- /Users/tim/dev/universal_libs/include
20
- /usr/local/include
21
- /usr/include
22
19
c:/msys/local/include
23
20
NO_DEFAULT_PATH
24
21
)
22
+ FIND_PATH (EXPAT_INCLUDE_DIR expat.h)
25
23
#libexpat needed for msvc version
26
24
FIND_LIBRARY (EXPAT_LIBRARY NAMES expat libexpat PATHS
27
25
"$ENV{LIB_DIR} /lib"
28
- /usr/local/lib
29
- /usr/lib
30
26
c:/msys/local/lib
31
27
NO_DEFAULT_PATH
32
28
)
29
+ FIND_LIBRARY (EXPAT_LIBRARY NAMES expat libexpat)
33
30
34
31
IF (EXPAT_INCLUDE_DIR AND EXPAT_LIBRARY)
35
32
SET (EXPAT_FOUND TRUE )
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
16
- FIND_PATH (GEOS_INCLUDE_DIR geos.h
10
+ # FIND_PATH and FIND_LIBRARY normally search standard locations
11
+ # before the specified paths. To search non-standard paths first,
12
+ # FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
13
+ # and then again with no specified paths to search the default
14
+ # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
15
+ # searching for the same item do nothing.
16
+ FIND_PATH (GEOS_INCLUDE_DIR geos.h
17
17
"$ENV{LIB_DIR} /include"
18
- /usr/local/include
19
- /usr/include
20
18
#mingw
21
19
c:/msys/local/include
22
20
NO_DEFAULT_PATH
23
21
)
22
+ FIND_PATH (GEOS_INCLUDE_DIR geos.h)
24
23
25
24
FIND_LIBRARY (GEOS_LIBRARY NAMES geos PATHS
26
25
"$ENV{LIB_DIR} /lib"
27
- /usr/local/lib
28
- /usr/lib
29
26
#mingw
30
27
c:/msys/local/lib
31
28
NO_DEFAULT_PATH
32
29
)
30
+ FIND_LIBRARY (GEOS_LIBRARY NAMES geos)
33
31
34
32
IF (GEOS_INCLUDE_DIR AND GEOS_LIBRARY)
35
33
SET (GEOS_FOUND TRUE )
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
16
- FIND_PATH (PROJ_INCLUDE_DIR proj_api.h
10
+ # FIND_PATH and FIND_LIBRARY normally search standard locations
11
+ # before the specified paths. To search non-standard paths first,
12
+ # FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
13
+ # and then again with no specified paths to search the default
14
+ # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
15
+ # searching for the same item do nothing.
16
+ FIND_PATH (PROJ_INCLUDE_DIR proj_api.h
17
17
"$ENV{LIB_DIR} /include/proj"
18
18
"$ENV{LIB_DIR} /include"
19
- /usr/local/include
20
- /usr/include
21
19
#mingw
22
20
c:/msys/local/include
23
21
NO_DEFAULT_PATH
24
22
)
23
+ FIND_PATH (PROJ_INCLUDE_DIR proj_api.h)
25
24
26
- FIND_LIBRARY (PROJ_LIBRARY NAMES proj PATHS
25
+ FIND_LIBRARY (PROJ_LIBRARY NAMES proj PATHS
27
26
"$ENV{LIB_DIR} /lib"
28
- /usr/local/lib
29
- /usr/lib
27
+ #mingw
30
28
c:/msys/local/lib
31
29
NO_DEFAULT_PATH
32
30
)
31
+ FIND_LIBRARY (PROJ_LIBRARY NAMES proj)
33
32
34
33
IF (PROJ_INCLUDE_DIR AND PROJ_LIBRARY)
35
34
SET (PROJ_FOUND TRUE )
Original file line number Diff line number Diff line change 7
7
# SQLITE3_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
16
- FIND_PATH (SQLITE3_INCLUDE_DIR sqlite3.h
10
+ # FIND_PATH and FIND_LIBRARY normally search standard locations
11
+ # before the specified paths. To search non-standard paths first,
12
+ # FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
13
+ # and then again with no specified paths to search the default
14
+ # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
15
+ # searching for the same item do nothing.
16
+ FIND_PATH (SQLITE3_INCLUDE_DIR sqlite3.h
17
17
"$ENV{LIB_DIR} /include"
18
18
"$ENV{LIB_DIR} /include/sqlite"
19
- /usr/local/include
20
- /usr/include
21
19
#mingw
22
20
c:/msys/local/include
23
21
NO_DEFAULT_PATH
24
22
)
23
+ FIND_PATH (SQLITE3_INCLUDE_DIR sqlite3.h)
25
24
26
- FIND_LIBRARY (SQLITE3_LIBRARY NAMES sqlite3 PATHS
25
+ FIND_LIBRARY (SQLITE3_LIBRARY NAMES sqlite3 PATHS
27
26
"$ENV{LIB_DIR} /lib"
28
- /usr/local/lib
29
- /usr/lib
27
+ #mingw
30
28
c:/msys/local/lib
31
29
NO_DEFAULT_PATH
32
30
)
31
+ FIND_LIBRARY (SQLITE3_LIBRARY NAMES sqlite3)
33
32
34
33
IF (SQLITE3_INCLUDE_DIR AND SQLITE3_LIBRARY)
35
34
SET (SQLITE3_FOUND TRUE )
You can’t perform that action at this time.
0 commit comments