[CMake] CMake + MPI

Nico Schlömer nico.schloemer at gmail.com
Tue Sep 8 07:01:31 EDT 2015


Hi everyone,

When it comes to compiling and linking, the MPI world is quite a mess.
Sometimes, vendors make you link and include certain libraries/directories,
sometimes you are supposed to simply use a compiler wrapper, often both.

What's the recommended way of dealing with MPI in CMake? Do you
`find_package(MPI REQUIRED)` and set LINK_LIBRARIES and INCLUDE_DIRS? Do
you select a compiler wrapper from within the CMake file? From outside?

Cheers,
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150908/1c6506ee/attachment.html>


More information about the CMake mailing list