[cmake-developers] [CMake 0013478]: FindMPI doesn't find openMPI properly

Mantis Bug Tracker mantis at public.kitware.com
Thu Aug 16 15:23:03 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=13478 
====================================================================== 
Reported By:                Max Klimov
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13478
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-08-16 15:23 EDT
Last Modified:              2012-08-16 15:23 EDT
====================================================================== 
Summary:                    FindMPI doesn't find openMPI properly
Description: 
find_package(MPI ...) doesn't define all necessary variables correctly with
openMPI-1.6 and older on windows7:
- MPI_{LANG}_INCLUDE_PATH contains ';' instead of ' '(spaces), for example:
"C:\Program;Files;(x86)\OpenMPI_v1.6-x64/include". But this isn't all, to fix
this variable i must add ';' to the front and to the back of string (for this
working result: ;"C:\Program Files (x86)\OpenMPI_v1.6-x64/include"; ) .
- MPI_LIBRARY and MPI_EXTRA_LIBRARY aren't found automatically.

OpenMPI bin directory was added to environment. Command "mpicxx --showme" has
output: 
"cl.exe /I"C:\Program Files (x86)\OpenMPI_v1.6-x64/include" /TP /EHsc
/DOMPI_IMPORTS /DOPAL_IMPORTS /DORTE_IMPORTS /link /LIBPATH:"C:\Program Files
(x86)\OpenMPI_v1.6-x64/lib" libmpi_cxx.lib libmpi.lib libopen-pal.lib
libopen-rte.lib advapi32.lib Ws2_32.lib shlwapi.lib"

Other commands such as "mpicxx --showme:incdirs" have correct output too.

Steps to Reproduce: 
1. Install OpenMPI-1.6 (x86 or x64)
2. add find_package(MPI REQUIRED) to CMakeLists.txt
3. check MPI block of variables in cache
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-08-16 15:23 Max Klimov     New Issue                                    
======================================================================




More information about the cmake-developers mailing list