Skip to content

FindMPI: Fix multiple configure runs

Christian Pfeiffer requested to merge ChrisTX/cmake:findmpi-found-cond into master

Due to a erroneous logical dependency on a temporary variable, FindMPI would depend its FOUND status on the set of flags needed to support compiler-implicit MPI support after the first configure run.

This behavior is especially causing a misreported NOT FOUND status after the first run on MPI implementations without MPI compiler like MS-MPI or MPICH2 on Windows.

Thanks to @alzi for making me aware of this issue.

Merge request reports