diff --git a/framework/vst/sdk/CMakeLists.txt b/framework/vst/sdk/CMakeLists.txt index 3f84330182..c7c0ce0046 100644 --- a/framework/vst/sdk/CMakeLists.txt +++ b/framework/vst/sdk/CMakeLists.txt @@ -185,6 +185,12 @@ target_include_directories(vst3sdk PUBLIC target_no_warning(vst3sdk -w) +if (CC_IS_MSVC) + # C++20 changed u8"" literals from const char* to const char8_t*, breaking + # VST SDK's module_win32.cpp which passes them to functions expecting std::string. + target_compile_options(vst3sdk PRIVATE /Zc:char8_t-) +endif() + if (CC_IS_CLANG) target_compile_options(vst3sdk PRIVATE -fobjc-arc) endif()