diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b1dc5df10..2620d9655 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -63,12 +63,12 @@ target_compile_definitions(test_main PUBLIC JSON_TEST_USING_MULTIPLE_HEADERS=$) target_compile_features(test_main PRIVATE cxx_std_11) target_compile_options(test_main PUBLIC - $<$:/EHsc;$<$:/Od>> + $<$:/EHsc> # MSVC: Force to always compile with W4 # Disable warning C4566: character represented by universal-character-name '\uFF01' # cannot be represented in the current code page (1252) # Disable warning C4996: 'nlohmann::basic_json<...>::operator <<': was declared deprecated - $<$:/W4 /wd4566 /wd4996> + $<$:/W4;/wd4566;/wd4996;$<$:/wd4702>> # https://github.com/nlohmann/json/issues/1114 $<$:/bigobj> $<$:-Wa,-mbig-obj> diff --git a/tests/abi/CMakeLists.txt b/tests/abi/CMakeLists.txt index ba90837cb..542409977 100644 --- a/tests/abi/CMakeLists.txt +++ b/tests/abi/CMakeLists.txt @@ -5,9 +5,9 @@ target_compile_definitions(abi_compat_common INTERFACE JSON_TEST_KEEP_MACROS) target_compile_features(abi_compat_common INTERFACE cxx_std_11) target_compile_options(abi_compat_common INTERFACE - $<$:/EHsc;$<$:/Od>> + $<$:/EHsc> # MSVC: Force to always compile with W4 - $<$:/W4> + $<$:/W4;$<$:/wd4702>> # https://github.com/nlohmann/json/pull/3229 $<$:-diag-disable=2196>