View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010998CMakeModulespublic2010-07-15 18:542011-05-02 14:45
Reportersly5 
Assigned ToDavid Partyka 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0010998: MPI_COMPILER defaults to mpicxx, doesn't work for Fortran only
DescriptionFindMPI 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).

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024385)
David Partyka (developer)
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 (manager)
2011-05-02 14:45

Closing resolved issues that have not been updated in more than 3 months.

 Issue History
Date Modified Username Field Change
2010-07-15 18:54 sly5 New Issue
2010-12-08 10:45 David Cole Status new => assigned
2010-12-08 10:45 David Cole Assigned To => David Partyka
2011-01-04 08:52 David Partyka Note Added: 0024385
2011-01-04 08:52 David Partyka Status assigned => resolved
2011-01-04 08:52 David Partyka Fixed in Version => CMake 2.8.4
2011-01-04 08:52 David Partyka Resolution open => fixed
2011-01-04 11:59 David Cole Target Version => CMake 2.8.4
2011-05-02 14:45 David Cole Note Added: 0026304
2011-05-02 14:45 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team