[CMake] how to link with a system library ?

Hendrik Sattler post at hendrik-sattler.de
Mon Sep 22 14:21:29 EDT 2008


Am Monday 22 September 2008 19:43:35 schrieb Andreas Schneider:
> On Sunday 21 September 2008 18:58:50 Hendrik Sattler wrote:
> > > pointing to this CMake module
> > > http://code.google.com/p/cmake-modules/source/browse/trunk/Modules/GTK2
> > >/F in dGTK2.cmake
> > >
> > > I haven't tested it though.
> >
> > Looks not too good (it doesn't even use foreach for this endless list of
> > doing the same thing again and again). It also needs support for
> > component selection and missing finding the programs that come with gtk.
> > It mixes several things although they are not even from the same source
> > package upstream (glib / gtk / pango / ...).
> > It also doesn't make sure that the *config.h matches the library found
> > (if you ever have two versions installed).
>
> Sounds like you're volunteering to rewrite the module ;)

I wrote my own for finding glib-2.0 (including gthread-2.0 and genmarshal)

> I've written it some time ago for cmake 2.4. I'm not a GTK2 user so please
> feel free to develop a better module.

Neither am I.

HS


More information about the CMake mailing list