From 5c7946f7c4f49f730a747e385512f68f338554f3 Mon Sep 17 00:00:00 2001 From: Matthew Parlane Date: Sat, 24 Aug 2013 23:26:39 +1200 Subject: [PATCH] Fix android build. --- CMakeTests/FindLibUSB.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeTests/FindLibUSB.cmake b/CMakeTests/FindLibUSB.cmake index 789e6f8416..744cbb782d 100644 --- a/CMakeTests/FindLibUSB.cmake +++ b/CMakeTests/FindLibUSB.cmake @@ -8,7 +8,10 @@ # # vim: expandtab sw=4 ts=4 sts=4: -if (NOT LIBUSB_FOUND) +if(ANDROID) + set(LIBUSB_FOUND FALSE CACHE INTERNAL "libusb-1.0 found") + message(STATUS "libusb-1.0 not found.") +elseif (NOT LIBUSB_FOUND) pkg_check_modules (LIBUSB_PKG libusb-1.0) find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h