diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8c81b9123..78b5f1ab1 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -90,11 +90,11 @@ target_compile_options(test_main PUBLIC # https://github.com/nlohmann/json/pull/3229 $<$:-diag-disable=2196> - $<$>:-Wno-deprecated;-Wno-float-equal> $<$:-Wno-deprecated-declarations> $<$:-diag-disable=1786>) +target_include_directories(test_main SYSTEM PUBLIC + thirdparty/doctest) target_include_directories(test_main PUBLIC - thirdparty/doctest thirdparty/fifo_map ${PROJECT_BINARY_DIR}/include) target_link_libraries(test_main PUBLIC ${NLOHMANN_JSON_TARGET_NAME}) diff --git a/tests/abi/CMakeLists.txt b/tests/abi/CMakeLists.txt index 542409977..c6cbfd7c1 100644 --- a/tests/abi/CMakeLists.txt +++ b/tests/abi/CMakeLists.txt @@ -12,7 +12,6 @@ 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> $<$:-diag-disable=1786>) target_include_directories(abi_compat_common SYSTEM INTERFACE