c3102397e6
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2784 6952d904-891a-0410-993b-d76249ca496b
21 lines
857 B
Diff
21 lines
857 B
Diff
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
|
|
index 481b0e9..43e97e8 100644
|
|
--- a/Modules/FindMPI.cmake
|
|
+++ b/Modules/FindMPI.cmake
|
|
@@ -263,13 +263,13 @@ elseif (MPI_COMPILE_CMDLINE)
|
|
|
|
# Extract the set of libraries to link against from the link command
|
|
# line
|
|
- string(REGEX MATCHALL "-l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
|
|
+ string(REGEX MATCHALL " -l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
|
|
|
|
# Determine full path names for all of the libraries that one needs
|
|
# to link against in an MPI program
|
|
set(MPI_LIBRARIES)
|
|
foreach(LIB ${MPI_LIBNAMES})
|
|
- string(REGEX REPLACE "^-l" "" LIB ${LIB})
|
|
+ string(REGEX REPLACE "^ -l" "" LIB ${LIB})
|
|
set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE FILEPATH "Cleared" FORCE)
|
|
find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
|
|
if (MPI_LIB)
|