forked from bartvdbraak/blender
MSVC: Fix compiling with some system languages
Report from @cyaoeu that compiling failed for Japanese system language.
This commit is contained in:
parent
e6838ecc26
commit
c568985118
@ -52,6 +52,11 @@ macro(find_package_wrapper)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
add_definitions(-DWIN32)
|
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
|
# Minimum MSVC Version
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
||||||
if(MSVC_VERSION EQUAL 1800)
|
if(MSVC_VERSION EQUAL 1800)
|
||||||
|
Loading…
Reference in New Issue
Block a user