FindMPI fails if suffix is limited to .a and .lib

Dear experts.

find_package(MPI) “fails” (resulting in MPI_FOUND=FALSE) if CMAKE_FIND_LIBRARY_SUFFIXES is set to “.a;.lib” although it finds libmpichfort.a and libmpich.a (as reported in MPI_Fortran_LIBRARIES).

OS: Linux (Ubuntu 24.04.3 LTS)

CMake version: 4.2.3

MPI: mpich 4.1 (mpich-4.2.0-5build3 and libmpich12-4.2.0-5build3)

p.s. setting MPI_USE_STATIC_LIBS to TRUE seems to have no effect in selecting static libraries, right?