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.
This commit is contained in:
Sean Brennan 2015-07-09 08:34:19 -06:00 committed by Brad King
parent a6916a6c6e
commit cfd23d3f1f
1 changed files with 1 additions and 1 deletions

View File

@ -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 # Intel MPI 5.0.1 will return a zero return code even when the
# argument to the MPI compiler wrapper is unknown. Attempt to # argument to the MPI compiler wrapper is unknown. Attempt to
# catch this case. # catch this case.
if("${cmdline}" MATCHES "undefined reference") if(cmdline MATCHES "undefined reference" OR cmdline MATCHES "unrecognized")
set(success 255 ) set(success 255 )
endif() endif()
set(${cmdvar} "${cmdline}" PARENT_SCOPE) set(${cmdvar} "${cmdline}" PARENT_SCOPE)