From 394ae6fd00e42a120a1a97cb8f533767fa792fa7 Mon Sep 17 00:00:00 2001 From: vconcat <77518876+vconcat@users.noreply.github.com> Date: Sun, 21 Mar 2021 23:00:39 +0800 Subject: [PATCH] fix(Build/Windows): For OS locales like CJK (#4912) --- src/cmake/compiler/msvc/settings.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cmake/compiler/msvc/settings.cmake b/src/cmake/compiler/msvc/settings.cmake index 872922b6e..0ca173c0e 100644 --- a/src/cmake/compiler/msvc/settings.cmake +++ b/src/cmake/compiler/msvc/settings.cmake @@ -19,6 +19,11 @@ string(REGEX REPLACE "/W[0-4]$" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") string(REGEX REPLACE "/W[0-4] " "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") string(REGEX REPLACE "/W[0-4]$" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") +# https://tinyurl.com/jxnc4s83 +target_compile_options(acore-compile-option-interface + INTERFACE + /utf-8) + if(PLATFORM EQUAL 64) # This definition is necessary to work around a bug with Intellisense described # here: http://tinyurl.com/2cb428. Syntax highlighting is important for proper