From 715f0dcaafbeda5d9fef58194d9ce256f0317ecf Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Tue, 19 Dec 2017 21:27:35 +1100 Subject: [PATCH] Just /source-charset:utf-8 didn't work. Try /utf-8. Change-Id: I90862237f38c70a04e16c96ce67bab11bf61718b Reviewed-on: https://code-review.googlesource.com/21431 Reviewed-by: Paul Wankadia --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09a8bb8c0..f87c4ff54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") add_compile_options(/wd4100 /wd4201 /wd4456 /wd4457 /wd4702 /wd4815) # Without a byte order mark (BOM), Visual Studio assumes that the source # file is encoded using the current user code page, so we specify UTF-8. - add_compile_options(/source-charset:utf-8) + add_compile_options(/utf-8) elseif(CYGWIN OR MINGW) # See https://stackoverflow.com/questions/38139631 for details. add_compile_options(-std=gnu++11)