File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,14 @@ MACRO (CHECK_GRASS G_PREFIX)
41
41
MARK_AS_ADVANCED ( GRASS_LIBRARY${GRASS_FIND_VERSION} _${LIB} )
42
42
43
43
SET (LIB_PATH NOTFOUND )
44
+ # FIND_PATH and FIND_LIBRARY normally search standard locations
45
+ # before the specified paths. To search non-standard paths first,
46
+ # FIND_* is invoked first with specified paths and NO_DEFAULT_PATH
47
+ # and then again with no specified paths to search the default
48
+ # locations. When an earlier FIND_* succeeds, subsequent FIND_*s
49
+ # searching for the same item do nothing.
44
50
FIND_LIBRARY (LIB_PATH NAMES grass_${LIB} PATHS ${G_PREFIX} /lib NO_DEFAULT_PATH)
51
+ FIND_LIBRARY (LIB_PATH NAMES grass_${LIB} PATHS ${G_PREFIX} /lib)
45
52
46
53
IF (LIB_PATH)
47
54
SET (GRASS_LIBRARY${GRASS_FIND_VERSION} _${LIB} ${LIB_PATH} )
You can’t perform that action at this time.
0 commit comments