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:
Shigeo Hashimoto 2021-10-15 01:45:40 +09:00 committed by GitHub
parent 255dec16d6
commit 25180ac9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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