Merge topic 'FindMPI-parse-Xlinker-flags'

a0792c48 FindMPI: Extract -Xlinker options
This commit is contained in:
Brad King 2014-12-15 11:06:42 -05:00 committed by CMake Topic Stage
commit 4d2c629045
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,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)