mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 21:47:49 +08:00
12 lines
439 B
Diff
12 lines
439 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -173,7 +173,7 @@
|
|
# so we'll just use libusb when it's available. libusb does not support iOS,
|
|
# so we default to yes on iOS.
|
|
# TODO: Windows can support libusb, the hid.c file just depends on Unix APIs
|
|
-if(WINDOWS OR IOS OR TVOS OR ANDROID)
|
|
+if((WINDOWS AND NOT WINDOWS_STORE) OR IOS OR TVOS OR ANDROID)
|
|
set(HIDAPI_SKIP_LIBUSB TRUE)
|
|
else()
|
|
set(HIDAPI_SKIP_LIBUSB FALSE)
|