]> https://gitweb.dealii.org/ - dealii.git/commitdiff
ignore mpirun tests without mpi
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 5 Jul 2015 10:56:38 +0000 (12:56 +0200)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 5 Jul 2015 11:42:24 +0000 (13:42 +0200)
cmake/macros/macro_deal_ii_pickup_tests.cmake

index b80d51eb0602f3d73650e2cc80e91032981c6f40..663974725ea212760c71b368ec743a471c5c982e 100644 (file)
@@ -167,6 +167,11 @@ MACRO(DEAL_II_PICKUP_TESTS)
       ENDIF()
     ENDFOREACH()
 
+    # Disable tests using mpirun if MPI is not enabled
+    STRING(REGEX MATCH "mpirun=" _matches ${_test})
+    IF (_matches AND NOT DEAL_II_WITH_MPI)
+      SET(_define_test FALSE)
+    ENDIF()
     #
     # Query configuration and check whether we support it. Otherwise
     # set _define_test to FALSE:

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.