<HTML>
<HEAD>
<TITLE>Re: [vtk-developers] FindMPI.cmake</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Ken,<BR>
<BR>
On 6/22/09 3:13 PM, "Moreland, Kenneth" <<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>FindMPI.cmake is also included as module in CMake and has been for some time. The FindMPI.cmake in VTK is probably a remnant for use in a really old version of CMake. Have you verified that the FindMPI.cmake in VTK corresponds to that in CMake?<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>There are differences in cmake’s modules version, but that section with –show is the same; the patch applies cleanly to the cmake file.<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
On a related note, since this summer VTK is making the move to require a new version of CMake, should someone go through the files in the CMake directory and remove those that are now part of the CMake distribution?<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 6/22/09 3:04 PM, "Fabian, Nathan" <<a href="ndfabia@sandia.gov">ndfabia@sandia.gov</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
I've stumbled over what I think is a small bug in FindMPI.cmake. When<BR>
looking for mpich paths it uses -show. Usually this works fine (as I expect<BR>
is a majority of cases) but not 100%. Apparently the -show seems to imply<BR>
the link command and gives the same result as -link-info, but not<BR>
necessarily the same as -compile-info.<BR>
<BR>
The attached patch replaces -show for mpich with -compile-info and<BR>
-link-info (and -compile_info/-link_info for older versions).<BR>
<BR>
I am happy to commit, if the powers that be think it wise.<BR>
<BR>
Thanks,<BR>
Nathan.<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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>