aboutsummaryrefslogtreecommitdiff
path: root/ports/sdl2/disable-hidapi-for-uwp.patch
blob: 13d1ca8d1fcce684b5e98813e4fb3f8218285c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -172,7 +172,7 @@
 #  requires root permissions to open devices, so that's not generally
 #  useful, and we'll disable this by default on Unix. Windows and macOS
 #  can use it without root access, though, so enable by default there.
-if(WINDOWS OR APPLE OR ANDROID)
+if((WINDOWS AND NOT WINDOWS_STORE) OR APPLE OR ANDROID)
   set(HIDAPI_SKIP_LIBUSB TRUE)
 else()
   set(HIDAPI_SKIP_LIBUSB FALSE)