Skip to content

Commit

Permalink
Set /utf-8 since VS2015.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwankyun committed May 2, 2024
1 parent 8c391e0 commit 7737aa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ target_compile_options(test_main PUBLIC
$<$<CXX_COMPILER_ID:MSVC>:/W4 /wd4566 /wd4996>
# https://github.com/nlohmann/json/issues/1114
$<$<CXX_COMPILER_ID:MSVC>:/bigobj> $<$<BOOL:${MINGW}>:-Wa,-mbig-obj>
# MSVC: Set source and execution character sets to UTF-8
$<$<CXX_COMPILER_ID:MSVC>:
$<$<VERSION_GREATER_EQUAL:${MSVC_VERSION},1900>:/utf-8;>>

# https://github.com/nlohmann/json/pull/3229
$<$<CXX_COMPILER_ID:Intel>:-diag-disable=2196>
Expand Down

0 comments on commit 7737aa0

Please sign in to comment.