summaryrefslogtreecommitdiff
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorAlin Marin Elena <alinm.elena@gmail.com>2014-12-09 10:52:33 +0000
committerBrad King <brad.king@kitware.com>2014-12-12 09:53:43 -0500
commita0792c48513fd76d8eb00a52f551f0f6fe1b71dc (patch)
treec16e8ada068153477bfae66039dd7d8b53180fc7 /Modules/FindMPI.cmake
parent66f587e7dcd127bf82bb175a8c7e9cc8cecb7a97 (diff)
downloadcmake-a0792c48513fd76d8eb00a52f551f0f6fe1b71dc.tar.gz
FindMPI: Extract -Xlinker options
Extend the regex that mathces -Wl, linker options to match -Xlinker too. These are used by Intel MPI and perhaps others.
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 6f6dcf33d6..56fffc70b6 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -363,7 +363,7 @@ function (interrogate_mpi_compiler lang try_libs)
endif()
# Extract linker flags from the link command line
- string(REGEX MATCHALL "(^| )-Wl,([^\" ]+|\"[^\"]+\")" MPI_ALL_LINK_FLAGS "${MPI_LINK_CMDLINE}")
+ string(REGEX MATCHALL "(^| )(-Wl,|-Xlinker )([^\" ]+|\"[^\"]+\")" MPI_ALL_LINK_FLAGS "${MPI_LINK_CMDLINE}")
set(MPI_LINK_FLAGS_WORK)
foreach(FLAG ${MPI_ALL_LINK_FLAGS})
if (MPI_LINK_FLAGS_WORK)