From 3d450e22bad1173ed0965e52751fab98bd13f49d Mon Sep 17 00:00:00 2001 From: Freddie Wang Date: Tue, 15 Feb 2022 22:01:02 +0800 Subject: [PATCH] Use /utf-8 for MSVC --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b32f6a60b..41d09f6aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2769,6 +2769,7 @@ foreach(target ${TARGETS}) target_compile_options(${target} PRIVATE /EHsc) # Only catch C++ exceptions with catch. target_compile_options(${target} PRIVATE /GS) # Protect the stack pointer. target_compile_options(${target} PRIVATE /wd4996) # Use of non-_s functions. + target_compile_options(${target} PRIVATE /utf-8) # Use UTF-8 for source files. endif() if(OUR_FLAGS_LINK) target_link_libraries(${target} ${OUR_FLAGS_LINK})