/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.1-mpi.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.1-mpi.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 8 11:33:39 2011 UTC (3 years, 3 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop older stuff. Keep just latest stable.

(Portage version: 2.2.0_alpha31/cvs/Linux x86_64)

1 diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
2 index 481b0e9..43e97e8 100644
3 --- a/Modules/FindMPI.cmake
4 +++ b/Modules/FindMPI.cmake
5 @@ -263,13 +263,13 @@ elseif (MPI_COMPILE_CMDLINE)
6
7 # Extract the set of libraries to link against from the link command
8 # line
9 - string(REGEX MATCHALL "-l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
10 + string(REGEX MATCHALL " -l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
11
12 # Determine full path names for all of the libraries that one needs
13 # to link against in an MPI program
14 set(MPI_LIBRARIES)
15 foreach(LIB ${MPI_LIBNAMES})
16 - string(REGEX REPLACE "^-l" "" LIB ${LIB})
17 + string(REGEX REPLACE "^ -l" "" LIB ${LIB})
18 set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE FILEPATH "Cleared" FORCE)
19 find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
20 if (MPI_LIB)

  ViewVC Help
Powered by ViewVC 1.1.20