Skip to content

Commit

Permalink
Just /source-charset:utf-8 didn't work. Try /utf-8.
Browse files Browse the repository at this point in the history
Change-Id: I90862237f38c70a04e16c96ce67bab11bf61718b
Reviewed-on: https://code-review.googlesource.com/21431
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Dec 19, 2017
1 parent 382394a commit 715f0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 715f0dc

Please sign in to comment.