MantisBT - CMake
View Issue Details
0010998CMakeModulespublic2010-07-15 18:542011-05-02 14:45
sly5 
David Partyka 
normaltweakalways
closedfixed 
CMake-2-8 
CMake 2.8.4CMake 2.8.4 
0010998: MPI_COMPILER defaults to mpicxx, doesn't work for Fortran only
FindMPI module looks for the C++ mpi compiler (mpicxx, mpiCC) wrapper to set the MPI_COMPILER. But for Fortran only projects, this doesn't work since one of C++ specific MPI libraries are added at the linker stage. (same goes for C only projects, but I haven't checked the actual behavior).

This module can be made a bit smarter to detect whether C++ is enabled, and if not, try to locate fortran (mpif90, mpif77), or C (mpicc) compiler wrappers to resolve MPI_LIBRARIES.

Note that, this is not really a fatal problem since MPI_COMPILER can be manually set in CMakeLists.txt (bad), or during the build (showstopper).

No tags attached.
Issue History
2010-07-15 18:54sly5New Issue
2010-12-08 10:45David ColeStatusnew => assigned
2010-12-08 10:45David ColeAssigned To => David Partyka
2011-01-04 08:52David PartykaNote Added: 0024385
2011-01-04 08:52David PartykaStatusassigned => resolved
2011-01-04 08:52David PartykaFixed in Version => CMake 2.8.4
2011-01-04 08:52David PartykaResolutionopen => fixed
2011-01-04 11:59David ColeTarget Version => CMake 2.8.4
2011-05-02 14:45David ColeNote Added: 0026304
2011-05-02 14:45David ColeStatusresolved => closed

Notes
(0024385)
David Partyka   
2011-01-04 08:52   
This module has been vastly re-factored in CMake 2.8.4, properly distinguishing between C/C++/Fortran compilers. When 2.8.4-RC1 is released please try it out and let us know if you still have any issues by reopening this bug or creating a new one.
(0026304)
David Cole   
2011-05-02 14:45   
Closing resolved issues that have not been updated in more than 3 months.