From: Timo Heister Date: Mon, 8 Apr 2019 14:01:39 +0000 (-0600) Subject: mpi quicktests fail X-Git-Tag: v9.1.0-rc1~214^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7897%2Fhead;p=dealii.git mpi quicktests fail mpirun completes about not finding the executable. This reverts part of --- diff --git a/tests/quick_tests/CMakeLists.txt b/tests/quick_tests/CMakeLists.txt index ba2493fdb3..7c3023344e 100644 --- a/tests/quick_tests/CMakeLists.txt +++ b/tests/quick_tests/CMakeLists.txt @@ -46,7 +46,11 @@ MACRO(make_quicktest test_basename build_name mpi_run) IF("${mpi_run}" STREQUAL "") SET(_command ${_target}) ELSE() - SET(_command ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${mpi_run} ${MPIEXEC_PREFLAGS} ${_target}) + IF(CMAKE_SYSTEM_NAME MATCHES "Windows") + SET(_command ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${mpi_run} ${MPIEXEC_PREFLAGS} ${_target}) + ELSE() + SET(_command ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${mpi_run} ${MPIEXEC_PREFLAGS} ./${_target}) + ENDIF() ENDIF() ADD_CUSTOM_TARGET(${_target}.run DEPENDS ${_target}