Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

externals/libusb/CMakeLists: Add /utf-8 compile option for MSVC

Morphab1fcde5612e
diff --git a/externals/libusb/CMakeLists.txt b/externals/libusb/CMakeLists.txt
index c0d24b126e..70d6735e31 100644
--- a/externals/libusb/CMakeLists.txt
+++ b/externals/libusb/CMakeLists.txt
@@ -1,3 +1,8 @@
+# Ensure libusb compiles with UTF-8 encoding on MSVC
+if(MSVC)
+ add_compile_options(/utf-8)
+endif()
+
add_library(usb STATIC EXCLUDE_FROM_ALL
libusb/libusb/core.c
libusb/libusb/core.c