Hi,
How about setting C and CXX to mpi-aware compilers? For example, C=mpiicc and CXX=mpiicpc (or, MPI wrapper of icc/icpc).
This may fix this issue, since quite often the command line setting is override by running CMake command.
And, also, setting C=icpc (using C++ compiler) might help some of the compilation issue.
Best regards,