<br><br><div class="gmail_quote">On Wed, Sep 28, 2011 at 12:13 AM, Michael Wild <span dir="ltr">&lt;<a href="mailto:themiwi@gmail.com">themiwi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 09/28/2011 02:44 AM, Clifford Yapp wrote:<br>
&gt; I&#39;ve run into a situation where find_library is returning a symlink:<br>
&gt;<br>
&gt; /usr/lib/libblah.so -&gt; libblah.so.1<br>
&gt;<br>
&gt;  but libblah.so.1 does not actually exist (e.g. the symlink is bad).<br>
&gt;<br>
&gt; Is there an option I can set to have find_library ensure that a found<br>
&gt; library file is valid and links?<br>
&gt;<br>
&gt; Cheers,<br>
&gt; CY<br>
&gt;<br>
<br>
</div></div>Yes, but you need to do it yourself, e.g. use the CheckFunctionExists<br>
module.<br>
<br>
Michael<br></blockquote></div><br>Urm.  That&#39;s surprising, and not so hot in that it leads to &quot;false positives&quot; in find_library reports.  Has anyone wrapped find_library with a generic linking test successfully?<br>
<br>CY<br>