summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-12-11 22:26:06 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-12-11 22:26:06 (GMT)
commit17a846ac3e8d0fab4bb99e238dbe867941594465 (patch)
treeed9663eab66b1cab46f9889ba736b7db7900cc1e /Modules/FindMPI.cmake
parent3171fe0afa7169c1e814a5c0e08b115002f0d3c3 (diff)
downloadCMake-17a846ac3e8d0fab4bb99e238dbe867941594465.zip
CMake-17a846ac3e8d0fab4bb99e238dbe867941594465.tar.gz
CMake-17a846ac3e8d0fab4bb99e238dbe867941594465.tar.bz2
FindMPI: search for msmpi's mpiexec as well
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 6f6dcf3..0508579 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -174,6 +174,7 @@ set(_MPI_EXEC_NAMES mpiexec mpirun lamexec srun)
# Grab the path to MPI from the registry if we're on windows.
set(_MPI_PREFIX_PATH)
if(WIN32)
+ list(APPEND _MPI_PREFIX_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MPI;InstallRoot]/Bin")
list(APPEND _MPI_PREFIX_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MPICH\\SMPD;binary]/..")
list(APPEND _MPI_PREFIX_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MPICH2;Path]")
list(APPEND _MPI_PREFIX_PATH "$ENV{ProgramW6432}/MPICH2/")