From 7737aa081f8a9d5d7fa05f0079142f4fd187ebd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=8A=E5=B0=91?= Date: Thu, 2 May 2024 18:52:03 +0800 Subject: [PATCH] Set /utf-8 since VS2015. --- tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a153a6924..d9d7a396c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -58,6 +58,9 @@ target_compile_options(test_main PUBLIC $<$:/W4 /wd4566 /wd4996> # https://github.com/nlohmann/json/issues/1114 $<$:/bigobj> $<$:-Wa,-mbig-obj> + # MSVC: Set source and execution character sets to UTF-8 + $<$: + $<$:/utf-8;>> # https://github.com/nlohmann/json/pull/3229 $<$:-diag-disable=2196>