From a0792c48513fd76d8eb00a52f551f0f6fe1b71dc Mon Sep 17 00:00:00 2001 From: Alin Marin Elena Date: Tue, 9 Dec 2014 10:52:33 +0000 Subject: 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. --- Modules/FindMPI.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12