MantisBT - CMake
View Issue Details
0014872CMakeCMakepublic2014-04-10 15:232016-06-10 14:31
Melven Roehrig-Zoellner 
Kitware Robot 
lowtweakalways
closedmoved 
x86_64LinuxopenSUSE 13.1
CMake 2.8.12 
 
0014872: FindMPI.cmake finds MPI of different compiler
On the machine I'm using here there are multiple compilers and MPI variants in the PATH:
More precisely ifort, gfortran and pgf90 in the PATH and each of them brings their own MPI wrappers (one could argue that this is already a bug of the system, but I'm not the admin...).
So without setting any additional environment-variables, cmake detects ifort as Fortran compiler and the MPI-wrapper mpif90 from PGI. As a result one obtains possibly strange compiler errors during make.
It would be helpful to get at least an error from cmake if the compiler ID (or version) of MPI_Fortran_COMPILER and CMAKE_Fortran_COMPILER differ...

Most probably the same effects could also occur for C / C ++, but I have not tested other languages than Fortran.
Install compilers from different vendors and a specific MPI variant for each them. Then put all compilers and at least one MPI variant in the path.
No tags attached.
Issue History
2014-04-10 15:23Melven Roehrig-ZoellnerNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042533
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042533)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.