Commit 6dfd7a17e1d9ea94015bb0fda4c570f8b20781bd

Anonymous Maarten 2022-09-10T15:53:11

cmake: forward HAVE_LIBUSB to HAVE_HIDAPI_LIBUSB

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)