mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
cmake: when there are alternatives, don't use libusb by default
This commit is contained in:
parent
d6a8b43cf7
commit
a4e6f3ca9d
2 changed files with 12 additions and 4 deletions
|
|
@ -1176,10 +1176,10 @@ endmacro()
|
|||
# Check for HIDAPI support
|
||||
macro(CheckHIDAPI)
|
||||
set(HAVE_HIDAPI TRUE)
|
||||
if(NOT HIDAPI_SKIP_LIBUSB)
|
||||
if(SDL_HIDAPI_LIBUSB)
|
||||
set(HAVE_LIBUSB FALSE)
|
||||
pkg_check_modules(LIBUSB libusb-1.0)
|
||||
if (LIBUSB_FOUND)
|
||||
if(LIBUSB_FOUND)
|
||||
check_include_file(libusb.h HAVE_LIBUSB_H ${LIBUSB_CFLAGS})
|
||||
if(HAVE_LIBUSB_H)
|
||||
set(HAVE_LIBUSB TRUE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue