Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-12-10 07:12:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-12-10 07:19:50 +0300
commitc5689851186392407eab3ce3801db3270ce84cb6 (patch)
tree40cb87373e83b4005fe602ddc5d15f280ffcdfc0 /build_files
parente6838ecc260441dcba0abfcd8a8292b94081df64 (diff)
MSVC: Fix compiling with some system languages
Report from @cyaoeu that compiling failed for Japanese system language.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/platform/platform_win32.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_win32.cmake b/build_files/cmake/platform/platform_win32.cmake
index 146412e556b..4b444e63ebd 100644
--- a/build_files/cmake/platform/platform_win32.cmake
+++ b/build_files/cmake/platform/platform_win32.cmake
@@ -52,6 +52,11 @@ macro(find_package_wrapper)
endmacro()
add_definitions(-DWIN32)
+
+# Needed, otherwise system encoding causes utf-8 encoding to fail in some cases (C4819)
+add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
+add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
+
# Minimum MSVC Version
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
if(MSVC_VERSION EQUAL 1800)