File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 7
7
# EXPAT_INCLUDE_DIR
8
8
# EXPAT_LIBRARY
9
9
10
-
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
11
16
FIND_PATH (EXPAT_INCLUDE_DIR expat.h
17
+ "$ENV{LIB_DIR} /include/"
18
+ "$ENV{LIB_DIR} /include/expat"
19
+ /Users/tim/dev/universal_libs/include
12
20
/usr/local/include
13
21
/usr/include
14
- "$ENV{LIB_DIR} /include/expat"
15
22
c:/msys/local/include
23
+ NO_DEFAULT_PATH
16
24
)
17
25
#libexpat needed for msvc version
18
26
FIND_LIBRARY (EXPAT_LIBRARY NAMES expat libexpat PATHS
27
+ "$ENV{LIB_DIR} /lib"
19
28
/usr/local/lib
20
29
/usr/lib
21
- "$ENV{LIB_DIR} /lib"
22
30
c:/msys/local/lib
31
+ NO_DEFAULT_PATH
23
32
)
24
33
25
34
IF (EXPAT_INCLUDE_DIR AND EXPAT_LIBRARY )
You can’t perform that action at this time.
0 commit comments