diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d0a8f131c..58abed4099 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -329,6 +329,10 @@ function(common_compile_options TARGET) target_link_options(${TARGET} PUBLIC -fsanitize=undefined) endif() endif(COMPILER_IS_LIKE_GNU) + + if(MSVC) + target_compile_options(${TARGET} PUBLIC /utf-8) + endif() endfunction() if (${DAWN_ENABLE_TSAN})