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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers