MantisBT - CMake
View Issue Details
0014709CMakeModulespublic2014-01-19 19:452016-06-10 14:31
Ryo IGARASHI 
Kitware Robot 
normaltweakalways
closedmoved 
amd64linuxRHEL5
CMake-2-8 
 
0014709: FindMPI.cmake failed to set MPI_CXX_LIBRARIES when using SGI MPI
When I try to use SGI version of MPI implementation, FindMPI.cmake failed to set the correct MPI_CXX_LIBRARIES.

For C++ programs, SGI MPI need to link 2 libraries, such that "-lmpi -lmpi++". However, according to CMakeCache.txt, it is set to:
MPI_CXX_LIBRARIES:STRING=/usr/lib64/libmpi.so /usr/lib64/libmpi++.so
not:
MPI_CXX_LIBRARIES:STRING=/usr/lib64/libmpi.so;/usr/lib64/libmpi++.so
the space causes the problem to link correctly.
$ cat CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
enable_language(CXX)
find_package(MPI)
$ cmake
... (snipped)
-- Found MPI_CXX: /usr/lib64/libmpi.so /usr/lib64/libmpi++.so
... (snipped)
No tags attached.
Issue History
2014-01-19 19:45Ryo IGARASHINew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042465
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
(0042465)
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.