[cmake-developers] Gold standard find module?

Richard Shaw hobbes1069 at gmail.com
Wed Sep 10 07:50:57 EDT 2014


On Wed, Sep 10, 2014 at 4:52 AM, Stephen Kelly <steveire at gmail.com> wrote:

> Richard Shaw wrote:
>
> > Everyone has been really helpful but I don't want to be a pest.
> >
> > Is there a specific find package module that one could point to that
> would
> > be consider the gold standard of getting it right? One with sufficient
> > complexity (not like the wiki example).
>
> Have you looked at
>
>
> http://www.cmake.org/cmake/help/git-master/manual/cmake-developer.7.html#a-sample-find-module
>
> too?


Thanks, that has a little more detail, but the module I'm trying to clean
up is this one:

http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FindFLTK.cmake;hb=HEAD

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.

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.

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 :)

Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140910/77e715e7/attachment-0002.html>


More information about the cmake-developers mailing list