We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e44139 commit c2b2314Copy full SHA for c2b2314
cmake/modules/Findudev.cmake
@@ -37,6 +37,9 @@ find_library(UDEV_LIBRARY
37
PATHS
38
${PC_LIBUDEV_LIBRARY_DIRS}
39
${PC_LIBUDEV_LIBDIR}
40
+ /usr/lib64
41
+ /usr/lib
42
+ /usr/local/lib
43
HINTS
44
"${UDEV_ROOT_DIR}"
45
PATH_SUFFIXES
@@ -49,6 +52,8 @@ find_path(UDEV_INCLUDE_DIR
49
52
NAMES
50
53
libudev.h
51
54
55
+ /usr/include
56
+ /usr/local/include
57
${PC_LIBUDEV_INCLUDE_DIRS}
58
${PC_LIBUDEV_INCLUDEDIR}
59
@@ -66,6 +71,10 @@ find_package_handle_standard_args(UDEV
66
71
UDEV_INCLUDE_DIR
67
72
)
68
73
74
+if (UDEV_INCLUDE_DIR AND UDEV_LIBRARY)
75
+ set(UDEV_FOUND TRUE)
76
+endif (UDEV_INCLUDE_DIR AND UDEV_LIBRARY)
77
+
69
78
if(UDEV_FOUND)
70
79
list(APPEND UDEV_LIBRARIES ${UDEV_LIBRARY})
80
list(APPEND UDEV_INCLUDE_DIRS ${UDEV_INCLUDE_DIR})
0 commit comments