build: add generic MPI pkgconfig descriptors
cmake recently gained support to use pkgconfig to detect MPI options (see https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6537/diffs). This is useful e.g. when cross-compiling.
This patch looks for pkgconfig setups called mpi-c, mpi-cxx, and mpi-fort. It would be good if MPICH provided such configuration, in addition to the mpich.pc that it already provides.
I see. So essentially to split/duplicate mpich.pc into mpi-c, mpi-cxx, and mpi-fort. Is it mpi-c or mpi-c.pc?
I believe it should be mpi-c.pc. Of course, the proof of the pudding will be in the eating, i.e. making a modern version of cmake find the correct build options even when mpicc is absent or (intentionally) broken.