Commit e02db957 authored by Dominik Thoennes's avatar Dominik Thoennes

change MPIEXEC to MPIEXEC_EXECTUABLE; add commands for backwards compatibility

parent 7163d39d
Pipeline #9697 passed with stage
in 216 minutes and 45 seconds
......@@ -368,7 +368,10 @@ function ( waLBerla_execute_test )
endif()
if( WALBERLA_BUILD_WITH_MPI )
list( INSERT ARG_COMMAND 0 ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${numProcesses} ${MPIEXEC_PREFLAGS} )
if( CMAKE_VERSION VERSION_LESS 3.10.0 )
set ( MPIEXEC_EXECUTABLE ${MPIEXEC} )
endif()
list( INSERT ARG_COMMAND 0 ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${numProcesses} ${MPIEXEC_PREFLAGS} )
elseif( numProcesses GREATER 1 )
return()
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment