From 256707309faf9238c9f7e81ba197d93b91b65b86 Mon Sep 17 00:00:00 2001 From: LIU Xiao Date: Sat, 27 Jul 2024 11:15:55 +0800 Subject: [PATCH] enforce UTF-8 when using MSVC --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a31320635..06f223d48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,11 @@ if (WIN32) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif() +if(MSVC) + add_compile_options("$<$:/utf-8>") + add_compile_options("$<$:/utf-8>") +endif() + # # option list #