cmake: forward HAVE_LIBUSB to HAVE_HIDAPI_LIBUSB
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index 1017aa5..e1939dc 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -1201,9 +1201,7 @@ macro(CheckHIDAPI)
if(HIDAPI_ONLY_LIBUSB AND NOT HAVE_LIBUSB)
set(HAVE_HIDAPI FALSE)
endif()
- if(NOT HAVE_LIBUSB)
- set(HAVE_HIDAPI_LIBUSB FALSE)
- endif()
+ set(HAVE_HIDAPI_LIBUSB ${HAVE_LIBUSB})
endif()
if(HAVE_HIDAPI)