Am using CMake build system along with an OpenMPI based project. CMake is using mpicc's -showme:compile and -showme:link output to build compile and link flags; however, it is expecting -showme:compile to dump at least some "-I" flags, that it is further parsing in order to build the list of include directories. As OpenMPI's mpicc (OpenMPI compiled from source on a Slackware Linux 12.0 installation) is not printing alike flags, CMake is unable to utilize OpenMPI. So, I'm wondering would it be possible to change OpenMPI to dump the path to the directory where mpi.h installed in an "-I" flag, when mpicc -showme:compile command run?
Thanks.