FindMPI: Treat 'command not found' as an error

If the compiler given in I_MPI_... could not be found, the Intel MPI
wrappers emit an error like "line 590: ifort: command not found".
The script should currently fail to match the output of this for
information, but we should generally treat such an output as invalid,
since the displayed configuration line can become a mixup between Intel
and GNU compiler settings.
This commit is contained in:
Christian Pfeiffer
2017-11-15 15:27:35 +01:00
parent e312885829
commit 1615cdedf5

View File

@@ -346,7 +346,7 @@ function (_MPI_check_compiler LANG QUERY_FLAG OUTPUT_VARIABLE RESULT_VARIABLE)
# library that has invalid or missing version information there would be warning # library that has invalid or missing version information there would be warning
# messages emitted by ld.so in the compiler output. In either case, we'll treat # messages emitted by ld.so in the compiler output. In either case, we'll treat
# the output as invalid. # the output as invalid.
if("${WRAPPER_OUTPUT}" MATCHES "undefined reference|unrecognized|need to set|no version information available") if("${WRAPPER_OUTPUT}" MATCHES "undefined reference|unrecognized|need to set|no version information available|command not found")
set(WRAPPER_RETURN 255) set(WRAPPER_RETURN 255)
endif() endif()
# Ensure that no error output might be passed upwards. # Ensure that no error output might be passed upwards.