From 25180ac9b6e7412aa3a4e6a87113d11b61934ae2 Mon Sep 17 00:00:00 2001 From: Shigeo Hashimoto Date: Fri, 15 Oct 2021 01:45:40 +0900 Subject: [PATCH] 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 --- cmake/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index caa92150c7d7..94dc810cce4f 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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