<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 10, 2014 at 4:52 AM, Stephen Kelly <span dir="ltr"><<a href="mailto:steveire@gmail.com" target="_blank">steveire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">Richard Shaw wrote:<br>
<br>
> Everyone has been really helpful but I don't want to be a pest.<br>
><br>
> Is there a specific find package module that one could point to that would<br>
> be consider the gold standard of getting it right? One with sufficient<br>
> complexity (not like the wiki example).<br>
<br>
</div></div>Have you looked at<br>
<br>
 <a href="http://www.cmake.org/cmake/help/git-master/manual/cmake-developer.7.html#a-sample-find-module" target="_blank">http://www.cmake.org/cmake/help/git-master/manual/cmake-developer.7.html#a-sample-find-module</a><br>
<br>
too?</blockquote><div><br></div><div>Thanks, that has a little more detail, but the module I'm trying to clean up is this one:</div><div><br></div><div><a href="http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FindFLTK.cmake;hb=HEAD">http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FindFLTK.cmake;hb=HEAD</a></div><div><br></div><div>It does a lot of questionable things, I think much of it due to the fact it's been unmaintained for so long and some of the newer commands were probably not available when it was written.</div><div><br></div><div>One wrinkle is that you can't trust the 'fltk-config' program. If you specify "--libs" it will give you the static library location even if only shared libraries were built, so it only uses that to get the library location, not the library itself. </div><div><br></div><div>The actual reason I took over the module is that it doesn't add the correct flags (--ldstaticflags) if you ARE actually using static libraries, but after some investigation, it really need a lot of cleanup/modernization work and I'm not sure I'm completely qualified to be the one to do it :)</div><div><br></div><div>Thanks,</div><div>Richard </div></div></div></div>