diff options
author | vconcat <77518876+vconcat@users.noreply.github.com> | 2021-03-21 23:00:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 16:00:39 +0100 |
commit | 394ae6fd00e42a120a1a97cb8f533767fa792fa7 (patch) | |
tree | c29e3c8039dc2efe8e021ef9a85f8097135f3de7 /src/cmake | |
parent | 832b0304ccc61709cc96156c0158a83a340a0df6 (diff) |
fix(Build/Windows): For OS locales like CJK (#4912)
Diffstat (limited to 'src/cmake')
-rw-r--r-- | src/cmake/compiler/msvc/settings.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmake/compiler/msvc/settings.cmake b/src/cmake/compiler/msvc/settings.cmake index 872922b6e4..0ca173c0e0 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 |