[cmake-developers] Gold standard find module?

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


On Wed, Sep 10, 2014 at 5:29 AM, David Cole via cmake-developers <
cmake-developers at cmake.org> wrote:

> I would say there are no "gold standard" find modules.
>
> The gold standard is a project config file, like Qt5 has.
>
> From http://www.cmake.org/cmake/help/v3.0/manual/cmake-qt.7.html :
>
> "the Qt 5 libraries are found using "Config-file Packages" shipped with Qt
> 5"
>
> Also, search this page for "Config mode":
>
> http://www.cmake.org/cmake/help/v3.0/command/find_package.html
>
> Find modules in CMake should be the last resort option, when it is simply
> impossible to add a project config mode file to a project.
>

Yes, in fact cmake builds of FLTK actually do provide a config file and the
find module tries to locate it, but as I mentioned to Stephen, I'm just
trying to improve the current module at this point.



> On the other hand, if the intent behind your question is to make the
> existing find modules all follow a given standard..... that's quite an
> ambitious goal. Let's see if anybody else names actual names for the "gold
> standard."


In this case just the one. I'm not that ambitious as I'm just volunteering
my time to various FOSS projects and still have to maintain a day job to
pay the bills!

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


More information about the cmake-developers mailing list