[Cmake-commits] [cmake-commits] dgregor committed FindMPI.cmake 1.19 1.20

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Apr 22 09:54:26 EDT 2008


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv20326

Modified Files:
	FindMPI.cmake 
Log Message:
BUG: As a last resort, FindMPI will look for mpi.h in the path


Index: FindMPI.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindMPI.cmake,v
retrieving revision 1.19
retrieving revision 1.20
diff -C 2 -d -r1.19 -r1.20
*** FindMPI.cmake	22 Apr 2008 13:41:07 -0000	1.19
--- FindMPI.cmake	22 Apr 2008 13:54:23 -0000	1.20
***************
*** 162,165 ****
--- 162,172 ----
    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}")



More information about the Cmake-commits mailing list