[cmake-developers] [CMake 0014709]: FindMPI.cmake failed to set MPI_CXX_LIBRARIES when using SGI MPI

Mantis Bug Tracker mantis at public.kitware.com
Sun Jan 19 19:45:17 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14709 
====================================================================== 
Reported By:                Ryo IGARASHI
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14709
Category:                   Modules
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-19 19:45 EST
Last Modified:              2014-01-19 19:45 EST
====================================================================== 
Summary:                    FindMPI.cmake failed to set MPI_CXX_LIBRARIES when
using SGI MPI
Description: 
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.


Steps to Reproduce: 
$ 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)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-19 19:45 Ryo IGARASHI   New Issue                                    
======================================================================



More information about the cmake-developers mailing list