From b4c83c329d85a947315b5046965490b99f304277 Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Tue, 26 May 2026 12:52:47 +1200 Subject: [PATCH 1/2] New version. --- VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION.txt b/VERSION.txt index cec56f65d..a381c665f 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.20260420.0 +0.20260526.0 From b1fcd88cb28c81fdb53d92607d5205d3a690b581 Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Tue, 26 May 2026 12:52:22 +1200 Subject: [PATCH 2/2] Suppress all warnings from GoogleTest sources. --- CMakeLists.txt | 5 +++++ cmake/common.cmake | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4963c07db..bf0e0540a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -558,6 +558,7 @@ endif() if(NOT EMSCRIPTEN AND NOT ONLY_BUILD_THIRD_PARTY_LIBRARIES) # Enable unit testing. + # Note: we suppress all warnings from GoogleTest sources since they have nothing to do with our code. if(LIBOPENCOR_UNIT_TESTING) enable_testing() @@ -567,6 +568,10 @@ if(NOT EMSCRIPTEN AND NOT ONLY_BUILD_THIRD_PARTY_LIBRARIES) add_subdirectory(extern/googletest) + foreach(TARGET gtest gtest_main) + suppress_target_warnings(${TARGET}) + endforeach() + mark_as_advanced(BUILD_GMOCK GTEST_HAS_ABSL INSTALL_GTEST) diff --git a/cmake/common.cmake b/cmake/common.cmake index 9f6613850..e2d78c9f8 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -32,6 +32,12 @@ function(replace_compiler_flag OLD NEW) endforeach() endfunction() +function(suppress_target_warnings TARGET) + target_compile_options(${TARGET} PRIVATE + $<$:/W0> + $<$>:-w>) +endfunction() + function(configure_target TARGET) # Ignore some MSVC warnings.