I have the following output
-- Could NOT find MPI_Fortran (missing: MPI_Fortran_WORKS)
-- Could NOT find MPI (missing: MPI_Fortran_FOUND) (found version "3.1")
Probably, It is caused by some inconsistencies in the exported paths.
However, I checked that I sourced /opt/intel/oneapi/setvars.sh and exported openmpi paths
OS Ubuntu 18.04.
cmake version 3.20.2
ifort (IFORT) 2021.2.0 20210228