diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b1dc5df10..c3cde40ec 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -75,8 +75,8 @@ target_compile_options(test_main PUBLIC # https://github.com/nlohmann/json/pull/3229 $<$:-diag-disable=2196> - $<$>:-Wno-deprecated;-Wno-float-equal> - $<$:-Wno-deprecated-declarations> + $<$:-Wno-deprecated-declarations;-Wno-deprecated;-Wno-float-equal> + $<$:-Wno-deprecated-declarations;-Wno-deprecated;-Wno-float-equal> $<$:-diag-disable=1786>) target_include_directories(test_main PUBLIC thirdparty/doctest diff --git a/tests/abi/CMakeLists.txt b/tests/abi/CMakeLists.txt index ba90837cb..83c311318 100644 --- a/tests/abi/CMakeLists.txt +++ b/tests/abi/CMakeLists.txt @@ -12,8 +12,8 @@ target_compile_options(abi_compat_common INTERFACE # https://github.com/nlohmann/json/pull/3229 $<$:-diag-disable=2196> - $<$>:-Wno-deprecated;-Wno-float-equal> - $<$:-Wno-deprecated-declarations> + $<$:-Wno-deprecated-declarations;-Wno-deprecated;-Wno-float-equal> + $<$:-Wno-deprecated-declarations;-Wno-deprecated;-Wno-float-equal> $<$:-diag-disable=1786>) target_include_directories(abi_compat_common SYSTEM INTERFACE ../thirdparty/doctest