diff --git a/cmake/modules/DuneTestMacros.cmake b/cmake/modules/DuneTestMacros.cmake index b7f01f026572be700d320918a2530dc531a6804a..1e95bfbad1d9c19ae4dedbdf885c71c0c458cce9 100644 --- a/cmake/modules/DuneTestMacros.cmake +++ b/cmake/modules/DuneTestMacros.cmake @@ -199,7 +199,7 @@ function(dune_add_test) if(NOT ADDTEST_MPI_RANKS) set(ADDTEST_MPI_RANKS 1) endif() - if((ADDTEST_MPI_RANKS > 1) AND (NOT ADDTEST_TIMEOUT)) + if(ADDTEST_MPI_RANKS AND (NOT ADDTEST_TIMEOUT)) message(FATAL_ERROR "dune_add_test: You need to specify the TIMEOUT parameter if using the MPI_RANKS parameter.") endif() if(NOT ADDTEST_TIMEOUT)