aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindLibUSB.cmake
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-07-27 16:57:06 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-07-27 16:57:06 -0400
commite91e2c4a2b617f793bd5109968b105fc96a7f50d (patch)
tree68083a0d5a42373d84d86154a31568c5ab8d4dbe /cmake/FindLibUSB.cmake
parentMerge pull request #7745 (diff)
parentInclude Libusb and hidapi on android (diff)
downloadmonero-e91e2c4a2b617f793bd5109968b105fc96a7f50d.tar.xz
Merge pull request #7758
42b74a3 Include Libusb and hidapi on android (malinero)
Diffstat (limited to 'cmake/FindLibUSB.cmake')
-rw-r--r--cmake/FindLibUSB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindLibUSB.cmake b/cmake/FindLibUSB.cmake
index 6944c6c45..7f8a11460 100644
--- a/cmake/FindLibUSB.cmake
+++ b/cmake/FindLibUSB.cmake
@@ -99,7 +99,7 @@ if ( LibUSB_FOUND )
check_library_exists ( "${LibUSB_LIBRARIES}" libusb_get_device_list "" LibUSB_VERSION_1.0 )
check_library_exists ( "${LibUSB_LIBRARIES}" libusb_get_port_numbers "" LibUSB_VERSION_1.0.16 )
- if((STATIC AND UNIX AND NOT APPLE) OR (DEPENDS AND CMAKE_SYSTEM_NAME STREQUAL "Linux"))
+ if((STATIC AND UNIX AND NOT APPLE) OR (DEPENDS AND CMAKE_SYSTEM_NAME STREQUAL "Linux") OR ANDROID)
find_library(LIBUDEV_LIBRARY udev)
if(LIBUDEV_LIBRARY)
set(LibUSB_LIBRARIES "${LibUSB_LIBRARIES};${LIBUDEV_LIBRARY}")