From b7b1eaf9f20e7c821f50ad34aa5b31688fbbc765 Mon Sep 17 00:00:00 2001 From: Dmitry Kobets Date: Tue, 30 Nov 2021 12:57:37 -0800 Subject: [PATCH] Manually suppress warnings for C++20 tests --- tests/CMakeLists.txt | 9 ++++----- tests/CMakeLists.txt.in | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e4ccb9a..ed6cb01 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,7 +15,6 @@ endif() pkg_search_module(GTestMain gtest_main) if (NOT GTestMain_FOUND) - message(INFO, "Manually building googletest") # No pre-installed GTest is available, try to download it using Git. find_package(Git REQUIRED QUIET) @@ -46,7 +45,6 @@ if (NOT GTestMain_FOUND) ${CMAKE_CURRENT_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL ) - message(INFO, "Done: Manually building googletest") endif() if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) @@ -132,13 +130,14 @@ else() -Wno-unused-member-function -Wno-unused-variable > + $<$:-Wzero-as-null-pointer-constant-> # Very noisy, minor, and just so + # happens to trigger on googletest + # for Ubuntu 20.04 + $<$:-Wsign-conversion-> > $<$: $<$,4.99>,$,6>>: $<$:-Wno-undefined-func-template> - # $<$:-Wzero-as-null-pointer-constant-> # Very noisy, minor, and just so - # # happens to trigger on googletest - # # for Ubuntu 20.04 > > $<$: diff --git a/tests/CMakeLists.txt.in b/tests/CMakeLists.txt.in index 059fc7d..2535f8f 100644 --- a/tests/CMakeLists.txt.in +++ b/tests/CMakeLists.txt.in @@ -11,5 +11,4 @@ ExternalProject_Add(googletest BUILD_COMMAND "" INSTALL_COMMAND "" TEST_COMMAND "" - CMAKE_ARGS -Wno-dev )