]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: deal_ii_pickup_tests(): only print a summary if we actually found something
authorMatthias Maier <tamiko@43-1.org>
Sat, 1 Jul 2023 04:49:38 +0000 (23:49 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 1 Jul 2023 05:07:34 +0000 (00:07 -0500)
cmake/macros/macro_deal_ii_pickup_tests.cmake

index 4fab00af7999bb651eed91d4771f4c30fe19fd04..be0234f7a292eb81a56c329695c9d07206ef7247 100644 (file)
@@ -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()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.