Fix build failed for visual studio in multi-byte windows environments (#7235)
* Set source and executable charset to utf-8 when Visual Studio * Remove unnecessary version check for visual studio
This commit is contained in:
parent
255dec16d6
commit
25180ac9b6
@ -209,6 +209,8 @@ if (MSVC)
|
||||
# Build with multiple processes
|
||||
add_definitions(/MP)
|
||||
endif()
|
||||
# Set source file and execution character sets to UTF-8
|
||||
add_definitions(/utf-8)
|
||||
# MSVC warning suppressions
|
||||
add_definitions(
|
||||
/wd4018 # 'expression' : signed/unsigned mismatch
|
||||
|
Loading…
Reference in New Issue
Block a user