summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorDouglas Gregor <doug.gregor@gmail.com>2008-04-22 13:54:23 (GMT)
committerDouglas Gregor <doug.gregor@gmail.com>2008-04-22 13:54:23 (GMT)
commit7e5921eff4761c0a122e1ac4488c41345fc2ec38 (patch)
tree4b12821117ebe7d906fec513fe2d8597a8af0224 /Modules/FindMPI.cmake
parentcecb98c618fca155cf420040d74aa7ec1e70453e (diff)
downloadCMake-7e5921eff4761c0a122e1ac4488c41345fc2ec38.zip
CMake-7e5921eff4761c0a122e1ac4488c41345fc2ec38.tar.gz
CMake-7e5921eff4761c0a122e1ac4488c41345fc2ec38.tar.bz2
BUG: As a last resort, FindMPI will look for mpi.h in the path
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index b84fc91..d568c94 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -161,6 +161,13 @@ elseif (MPI_COMPILE_CMDLINE)
endif (MPI_COMPILER_MAY_HAVE_INCLIBDIRS)
endif (NOT MPI_INCLUDE_PATH_WORK)
+ if (NOT MPI_INCLUDE_PATH_WORK)
+ # If all else fails, just search for mpi.h in the normal include
+ # paths.
+ find_path(MPI_INCLUDE_PATH mpi.h)
+ set(MPI_INCLUDE_PATH_WORK ${MPI_INCLUDE_PATH})
+ endif (NOT MPI_INCLUDE_PATH_WORK)
+
# Extract linker paths from the link command line
string(REGEX MATCHALL "-L([^\" ]+|\"[^\"]+\")" MPI_ALL_LINK_PATHS "${MPI_LINK_CMDLINE}")
set(MPI_LINK_PATH)