SDL: cmake: forward HAVE_LIBUSB to HAVE_HIDAPI_LIBUSB

From 6dfd7a17e1d9ea94015bb0fda4c570f8b20781bd Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 10 Sep 2022 15:53:11 +0200
Subject: [PATCH] cmake: forward HAVE_LIBUSB to HAVE_HIDAPI_LIBUSB

---
 cmake/sdlchecks.cmake | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index 1017aa59332..e1939dc3009 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)