From cfd23d3f1ff2fbbaa187928348d49fb463607b42 Mon Sep 17 00:00:00 2001 From: Sean Brennan Date: Thu, 9 Jul 2015 08:34:19 -0600 Subject: [PATCH] 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. --- Modules/FindMPI.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index 545b07761..06ecfaa8f 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)