From: Matthias Maier Date: Sat, 1 Jul 2023 04:49:38 +0000 (-0500) Subject: CMake: deal_ii_pickup_tests(): only print a summary if we actually found something X-Git-Tag: relicensing~824^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a11193756656e536124c4a8b6e6841f696c1be4d;p=dealii.git CMake: deal_ii_pickup_tests(): only print a summary if we actually found something --- diff --git a/cmake/macros/macro_deal_ii_pickup_tests.cmake b/cmake/macros/macro_deal_ii_pickup_tests.cmake index 4fab00af79..be0234f7a2 100644 --- a/cmake/macros/macro_deal_ii_pickup_tests.cmake +++ b/cmake/macros/macro_deal_ii_pickup_tests.cmake @@ -350,5 +350,7 @@ Comparison operator \"=\" expected for boolean match.\n" endforeach() - message(STATUS "Test category \"${_category}\": ${_number_of_tests} tests (and ${_number_of_test_dependencies} test dependencies)") + if(NOT "${_number_of_tests}" STREQUAL "0") + message(STATUS "Test category \"${_category}\": ${_number_of_tests} tests (and ${_number_of_test_dependencies} test dependencies)") + endif() endmacro()