From df9899eed6893f865229c26772e5f82697bde519 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Mon, 15 Mar 2021 10:51:46 -0400 Subject: externals/libusb/CMakeLists: Add /utf-8 compile option for MSVC --- externals/libusb/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/externals/libusb/CMakeLists.txt b/externals/libusb/CMakeLists.txt index c0d24b126..70d6735e3 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 -- cgit v1.2.3