<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Zaak,<br><br>Sorry for the first mail being so abrupt, I didn't mean to hit "send" so soon.<br><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I took a look at the FindMPI CMake module, and it seems as though you can set MPI_HOME to a list of directories to search.</div></div></blockquote><div><br></div><div>That's also another way of doing it, which would probably be easier than what I iniitially suggested; the former has just become my own habbit since MPI_HOME isn't always set.  MPI_HOME is used as a hint to search for mpiexec.  If mpiexec is found, it then uses it's location as a basis for locating the compiler wrappers.<br><br>That being said, if using MPI through an environment module (as is the typical use case) then FindMPI should "just work" as the wrappers generally end up in the path when the appropriate MPI module is loaded.  If you need to point to an entirely external MPI not part of your environment at all though, then using the MPI_HOME env var or MPI_<lang>_COMPILER CMake vars is the way to do it.<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>Would KitWare accept a pull request or a patch that expands the documentation of FindMPI</div></div></blockquote><div><br></div><div>Of course :-).  Expanding the "Usage" section in FindMPI to include using the MPI_HOME environment variable would be a good place for that.<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> and/or adds some clearer additional features to the call signature (like HINTS and PATHS)?</div></div></blockquote><div><br></div><div>Could you clarify what you mean by this?  To which call signature?<br><br><br></div></div>- Chuck<br></div></div>