diff options
author | Alin Marin Elena <alinm.elena@gmail.com> | 2014-12-09 10:52:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-12 14:53:43 (GMT) |
commit | a0792c48513fd76d8eb00a52f551f0f6fe1b71dc (patch) | |
tree | c16e8ada068153477bfae66039dd7d8b53180fc7 /Modules | |
parent | 66f587e7dcd127bf82bb175a8c7e9cc8cecb7a97 (diff) | |
download | CMake-a0792c48513fd76d8eb00a52f551f0f6fe1b71dc.zip CMake-a0792c48513fd76d8eb00a52f551f0f6fe1b71dc.tar.gz CMake-a0792c48513fd76d8eb00a52f551f0f6fe1b71dc.tar.bz2 |
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')
-rw-r--r-- | Modules/FindMPI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 6f6dcf3..56fffc7 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) |