Merge branch 'FindMPI-Intel-5' into release

This commit is contained in:
Brad King 2015-07-13 08:51:00 -04:00
commit 13f5f066ff
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
# 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)