mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 05:27:48 +00:00
cmake: forward HAVE_LIBUSB to HAVE_HIDAPI_LIBUSB
This commit is contained in:
@@ -1201,9 +1201,7 @@ macro(CheckHIDAPI)
|
|||||||
if(HIDAPI_ONLY_LIBUSB AND NOT HAVE_LIBUSB)
|
if(HIDAPI_ONLY_LIBUSB AND NOT HAVE_LIBUSB)
|
||||||
set(HAVE_HIDAPI FALSE)
|
set(HAVE_HIDAPI FALSE)
|
||||||
endif()
|
endif()
|
||||||
if(NOT HAVE_LIBUSB)
|
set(HAVE_HIDAPI_LIBUSB ${HAVE_LIBUSB})
|
||||||
set(HAVE_HIDAPI_LIBUSB FALSE)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_HIDAPI)
|
if(HAVE_HIDAPI)
|
||||||
|
|||||||
Reference in New Issue
Block a user