<br><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 12:11 PM, Szilárd Páll <span dir="ltr">&lt;<a href="mailto:szilard.pall@cbr.su.se">szilard.pall@cbr.su.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">&gt; Don&#39;t  know about HPUX. Cygwin should work too. And even MingW. If you<br>
&gt; use CMAKE_STATIC_LIBRARY_SUFFIX which is lib for MingW. How about you just<br>
&gt; disable the option if CMAKE_STATIC_LIBRARY_SUFFIX  is not set by Cmake?<br>
<br>
</div>Doesn&#39;t Cygwin use dll-s and .lib-s? To be honest I don&#39;t remember<br>
anymore and unless someone can test it&#39;s better to be left off, isn&#39;t<br>
it?<br>
<br>
What does and empty CMAKE_STATIC_LIBRARY_SUFFIX mean? Also, the fact<br>
that CMake sets CMAKE_STATIC_LIBRARY_SUFFIX does not necessarily mean<br>
that I know what to prepend to the list to prioritize static libs;<br>
e.g. if CMAKE_STATIC_LIBRARY_SUFFIX contains &quot; .sfoo .dbar&quot; where on<br>
platform X -sfoo is static and -dbar is dynamic library. Now, if I<br>
just prepend &quot;.a&quot; it does not hurt much. However, I&#39;d rather avoid<br>
doing that on a random X as it very likely that it&#39;s useless, and it<br>
might also pose a security risk to try to link against a &quot;.a&quot; on<br>
platform X (from galaxy Y :)...<br></blockquote><div><br></div><div>No Cygwin uses .a and MingW uses .lib. And it is automatically correct if you use  CMAKE_STATIC_LIBRARY_SUFFIX. I would understand empty CMAKE_STATIC_LIBRARY_SUFFIX as meaning that Cmake doesn&#39;t know what the correct suffix is. And I thought that the suffix can only have one value. Having said that, feel free to leave it like it is. It covers the important cases and shouldn&#39;t hurt in the others.</div>

<div><br></div><div>BTW: What about the issue with FindMPI and setting CC to mpicc? Do we add this test whether the compiler is already mpicc and thus no libraries or headers are needed to this release? Otherwise it isn&#39;t possible to compile on Cray without the hack of setting the MPI settings to &quot;;&quot;.</div>

<div><br></div><div>Roland</div><div><br></div></div>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309<br>