File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ find_library(UDEV_LIBRARY
3737 PATHS
3838 ${PC_LIBUDEV_LIBRARY_DIRS}
3939 ${PC_LIBUDEV_LIBDIR}
40+ /usr/lib64
41+ /usr/lib
42+ /usr/local/lib
4043 HINTS
4144 "${UDEV_ROOT_DIR} "
4245 PATH_SUFFIXES
@@ -49,6 +52,8 @@ find_path(UDEV_INCLUDE_DIR
4952 NAMES
5053 libudev.h
5154 PATHS
55+ /usr/include
56+ /usr/local/include
5257 ${PC_LIBUDEV_INCLUDE_DIRS}
5358 ${PC_LIBUDEV_INCLUDEDIR}
5459 HINTS
@@ -66,6 +71,10 @@ find_package_handle_standard_args(UDEV
6671 UDEV_INCLUDE_DIR
6772 )
6873
74+ if (UDEV_INCLUDE_DIR AND UDEV_LIBRARY )
75+ set (UDEV_FOUND TRUE )
76+ endif (UDEV_INCLUDE_DIR AND UDEV_LIBRARY )
77+
6978if (UDEV_FOUND )
7079 list (APPEND UDEV_LIBRARIES ${UDEV_LIBRARY} )
7180 list (APPEND UDEV_INCLUDE_DIRS ${UDEV_INCLUDE_DIR} )
You can’t perform that action at this time.
0 commit comments