summaryrefslogtreecommitdiffstats
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorSean Brennan <brennan@lanl.gov>2015-07-09 14:34:19 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-10 12:55:39 (GMT)
commitcfd23d3f1ff2fbbaa187928348d49fb463607b42 (patch)
treefa25d9190495264e115697c333781fb40de2d94a /Modules/FindMPI.cmake
parenta6916a6c6e397bda8b381f65dbfc59d3c52f8525 (diff)
downloadCMake-cfd23d3f1ff2fbbaa187928348d49fb463607b42.zip
CMake-cfd23d3f1ff2fbbaa187928348d49fb463607b42.tar.gz
CMake-cfd23d3f1ff2fbbaa187928348d49fb463607b42.tar.bz2
FindMPI: Extend Intel-MPI 5+ workaround for recent GCCs
Extend the workaround added by commit v3.2.0-rc1~278^2 (FindMPI: Workaround Intel MPI 5.0.1 exit code problem, 2014-12-04) with an additional/alternate keyword to recognize the case with recent GCCs.
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 545b077..06ecfaa 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -204,7 +204,7 @@ function (_mpi_check_compiler compiler options cmdvar resvar)
# Intel MPI 5.0.1 will return a zero return code even when the
# argument to the MPI compiler wrapper is unknown. Attempt to
# catch this case.
- if("${cmdline}" MATCHES "undefined reference")
+ if(cmdline MATCHES "undefined reference" OR cmdline MATCHES "unrecognized")
set(success 255 )
endif()
set(${cmdvar} "${cmdline}" PARENT_SCOPE)