summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-09-03 03:44:56 +0200
committerGitHub <noreply@github.com>2020-09-03 03:44:56 +0200
commitabfdc3aa7d388a9c7f99bf412180a86a30312384 (patch)
tree19f09d71d993c761d1e1e8f1800d8cdacf599534
parentMerge pull request #4622 from lat9nq/fix-configure-current-ellipse (diff)
parentexternals: Work around libusb duplicate GUID errors (diff)
downloadyuzu-abfdc3aa7d388a9c7f99bf412180a86a30312384.tar
yuzu-abfdc3aa7d388a9c7f99bf412180a86a30312384.tar.gz
yuzu-abfdc3aa7d388a9c7f99bf412180a86a30312384.tar.bz2
yuzu-abfdc3aa7d388a9c7f99bf412180a86a30312384.tar.lz
yuzu-abfdc3aa7d388a9c7f99bf412180a86a30312384.tar.xz
yuzu-abfdc3aa7d388a9c7f99bf412180a86a30312384.tar.zst
yuzu-abfdc3aa7d388a9c7f99bf412180a86a30312384.zip
-rw-r--r--externals/libusb/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/externals/libusb/CMakeLists.txt b/externals/libusb/CMakeLists.txt
index 074ce01d3..c0d24b126 100644
--- a/externals/libusb/CMakeLists.txt
+++ b/externals/libusb/CMakeLists.txt
@@ -21,6 +21,9 @@ if(WIN32)
if (NOT MINGW)
target_include_directories(usb BEFORE PRIVATE libusb/msvc)
endif()
+
+ # Works around other libraries providing their own definition of USB GUIDs (e.g. SDL2)
+ target_compile_definitions(usb PRIVATE "-DGUID_DEVINTERFACE_USB_DEVICE=(GUID){ 0xA5DCBF10, 0x6530, 0x11D2, {0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED}}")
else()
target_include_directories(usb
# turns out other projects also have "config.h", so make sure the