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>