[Cmake-commits] [cmake-commits] partyd committed FindMPI.cmake 1.26 1.27
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Oct 27 13:10:03 EDT 2009
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv5843/Modules
Modified Files:
FindMPI.cmake
Log Message:
COMP: need to add quotes when using get_filename_component otherwise it will try to process NOT FOUND rather than an empty string when MPIEXEC is not found.
Index: FindMPI.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindMPI.cmake,v
retrieving revision 1.26
retrieving revision 1.27
diff -C 2 -d -r1.26 -r1.27
*** FindMPI.cmake 27 Oct 2009 16:57:30 -0000 1.26
--- FindMPI.cmake 27 Oct 2009 17:10:01 -0000 1.27
***************
*** 107,112 ****
# call get_filename_component twice to remove mpiexec and the directory it exists in (typically bin).
# This gives us a fairly reliable base directory to search for /bin /lib and /include from.
! get_filename_component(MPI_BASE_DIR ${MPIEXEC} PATH)
! get_filename_component(MPI_BASE_DIR ${MPI_BASE_DIR} PATH)
# If there is an mpi compiler find it and interogate (farther below) it for the include
--- 107,112 ----
# call get_filename_component twice to remove mpiexec and the directory it exists in (typically bin).
# This gives us a fairly reliable base directory to search for /bin /lib and /include from.
! get_filename_component(MPI_BASE_DIR "${MPIEXEC}" PATH)
! get_filename_component(MPI_BASE_DIR "${MPI_BASE_DIR}" PATH)
# If there is an mpi compiler find it and interogate (farther below) it for the include
More information about the Cmake-commits
mailing list