[CMake] FindMPI: finding openmpi libs and includes

Dave Partyka dave.partyka at kitware.com
Tue Nov 30 17:41:35 EST 2010


It will search standard locations (/usr/include & /usr/lib) for the headers
and libs. Set MPI_LIBRARY and MPI_INCLUDE_PATH if it doesn't locate them for
you automatically. The FindMPI module does interrogate the mpicc compiler
for some of this information but I am not sure if that is the case on
Windows.

On Tue, Nov 30, 2010 at 5:26 PM, Hicham Mouline <hicham at mouline.org> wrote:

>  Hi,
>
> I have built debug and release win32 and x64 openmpi libs for windows, and
> I have them installed on linux x64.
>
> How does FindMPI work for auto detecting If I don't set any MPI_ variable
> at all?
>
> Does it search for mpic++ in the %PATH% or $PATH?
>
> What MPI_ variables is the user required to define?
>
>
>
> regards,
>
> _______________________________________________
> 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://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101130/c4769ab3/attachment-0001.htm>


More information about the CMake mailing list