What version of CMake are you using. Does 5.9/master work at all (trying to figure out whether FindMPI is at fault or not)? We might need to update FindMPI for this release/build of OpenMPI.
Seems that 5.8.1’s FindMPI that it ships with is insufficient for that OpenMPI. I suspect using a newer CMake might also help, but I can’t guarantee anything.
Not related to this message that I always keep seeing?
It looks like the regular find mpi tries various C, CXX etc languages and then the next package warns about the syntax.
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args` (MPI_C) does
not match the name of the calling package (MPI). This can lead to problems
in calling code that expects `find_package` result variables (e.g.,
`_FOUND`) to follow a certain pattern.
That warning can be ignored; newer FindMPI versions have fixed the problem; it’s just a warning that something might be wrong (FindMPI is doing that part right at least).
As for OpenSuse things…FindMPI is really complicated. You can try setting some of the cache variables that are mpich-y to being the openmpi ones.