'error when compiling ParallelIO-pio2_5_6 - "use mpi - Can't open module file ‘mpi.mod’ for reading at (1) - no such file or directory"

I am hitting the error noted in the title. As an attempted fix, I tried adding this option to the cmake call: -DCMAKE_CPP_FLAGS="-I/home/me/MPICH-latest/include". As a result, in my build directory, in CMakeCache.txt it shows: "CMAKE_CPP_FLAGS:UNINITIALIZED=-I/home/me/MPICH-latest/include" which is the correct path for mpi.mod. However, when I run "make -j6" in the build directory I still get the error in the title. I am running in Debian Linux. Any suggestions welcome. TIA.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source