From 73bc8644e04a66bd96d5a18a55bdaa741b3a1795 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Wed, 25 Mar 2020 11:11:05 +0000 Subject: [PATCH] Updated MPI path fix for Windows --- cmake/ThirdPartyMPI.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/ThirdPartyMPI.cmake b/cmake/ThirdPartyMPI.cmake index 64e3b5d6f..b17a19fc2 100644 --- a/cmake/ThirdPartyMPI.cmake +++ b/cmake/ThirdPartyMPI.cmake @@ -30,9 +30,11 @@ IF( NEKTAR_USE_MPI ) # If we're using WIN32, mpiexec is likely to be in a directory with # a space in the path so we need to quote the path so that it is run # correctly by the Tester... + # Update based on MPIEXEC_EXECUTABLE so that we don't get extra quotes + # added every time CMake is run! MESSAGE(STATUS "Found MPI Executable: ${MPIEXEC}") IF (WIN32) - SET(MPIEXEC "\\\"${MPIEXEC}\\\"" CACHE STRING "MPI job launching command") + SET(MPIEXEC "\\\"${MPIEXEC_EXECUTABLE}\\\"" CACHE STRING "MPI job launching command") MESSAGE(STATUS "Updated MPIEXEC for Win32 platform: ${MPIEXEC}") ENDIF () ELSE() -- GitLab