summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2015-01-06 17:58:07 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2015-01-06 17:58:07 (GMT)
commit827243942c3568bbb621c4009c8f03fdd0ba71f7 (patch)
treee0ee2ef13e1727b8be04fb7d2afe55cb6670f7d0 /Modules/FindMPI.cmake
parent73144c098d8b176bb99b762450b9b231687011b8 (diff)
downloadCMake-827243942c3568bbb621c4009c8f03fdd0ba71f7.zip
CMake-827243942c3568bbb621c4009c8f03fdd0ba71f7.tar.gz
CMake-827243942c3568bbb621c4009c8f03fdd0ba71f7.tar.bz2
FindMPI: add more search paths for MSMPI
Also comment what the various search paths are for.
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 8e39a7f..672c65d 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -174,7 +174,11 @@ 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)
+ # MSMPI
+ list(APPEND _MPI_PREFIX_PATH "$ENV{MSMPI_BIN}")
list(APPEND _MPI_PREFIX_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MPI;InstallRoot]/Bin")
+ list(APPEND _MPI_PREFIX_PATH "$ENV{MSMPI_INC}/..") # The SDK is installed separately from the runtime
+ # MPICH
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/")