Fix android build.

This commit is contained in:
Matthew Parlane 2013-08-24 23:26:39 +12:00
parent 7de9bda35e
commit 5c7946f7c4
1 changed files with 4 additions and 1 deletions

View File

@ -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