<HTML>
<HEAD>
<TITLE>Re: [CMake] Fortran version of FindMPI</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I think that&#8217;s a fine idea, but I will leave it to whomever maintains the Module in CMake.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 1/12/10 12:55 AM, &quot;Michael Wild&quot; &lt;<a href="themiwi@gmail.com">themiwi@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
On 11. Jan, 2010, at 22:26 , Moreland, Kenneth wrote:<BR>
<BR>
&gt; I have a simple Fortran program that uses MPI that I am trying to configure with CMake. &nbsp;The problem is that although the FindMPI module finds the C libraries for MPI, it does not find the Fortran libraries. &nbsp;To get around this I copied the FindMPI.cmake from the CMake distribution and did some edits and a few search-and-replaces to find the Fortran version of the library. &nbsp;It seems to work well enough on my system (using OpenMPI) with the exception of finding some system 64-bit libraries (which is actually caused by a CMake bug that I just submitted a report for <a href="http://www.paraview.org/Bug/view.php?id=10119">http://www.paraview.org/Bug/view.php?id=10119</a>). &nbsp;The module is attached. &nbsp;Is there any interest in placing this with the CMake distribution or integrating into the existing FindMPI module?<BR>
&gt;<BR>
&gt; -Ken<BR>
&gt;<BR>
<BR>
Hi Ken<BR>
<BR>
Wouldn't this be a good case to use COMPONENTS? E.g. find_package(MPI COMPONENTS C) or find_package(MPI COMPONENTS Fortran). If nothing is specified, the default could be to look at global ENABLED_LANGUAGES property and go on from there and discover all components that are listed in there (i.e. C, CXX or Fortran).<BR>
<BR>
<BR>
Michael<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>