From kde-buildsystem Mon Mar 16 11:28:26 2009 From: Allen Winter Date: Mon, 16 Mar 2009 11:28:26 +0000 To: kde-buildsystem Subject: Re: need to check Xi lib version Message-Id: <200903160728.27641.winter () kde ! org> X-MARC-Message: https://marc.info/?l=kde-buildsystem&m=123720302119083 Redirecting this to the buildsystem mailing list. On Sunday 15 March 2009 9:22:34 pm Andriy Rysin wrote: > 2009/3/14 Gabriel C : > > Andriy Rysin wrote: > > > >> Hi all > >> > >> in kxkb I need to check that Xi lib version is >= 1.2.0 (bug 182955) > >> it looks like most checks for X11 libs defined in kdelibs/cmake but > >> there's no check for their versions. > >> > >> Is there a quick way to check the Xi lib version without writing too > >> cmake code myself? > > > > > > Use pkgconfig ? > > > > pkg-config --version xi will return the version. ( I don't know the cmake code for this check ) > well, in this case I would not use cmake module from kdelibs > FindX11.cmake to find Xi and then if somebody else needs version it'll > have to reimplemented again, I was thinking rather if we want to embed > version info in the FindX11.cmake so it's in single place that > everybody can benefit... > Andriy, Yep, I think you should prepare a patch for FindX11.cmake. Then post that patch to kde-buildsystem@kde.org for review. -- Allen Winter | Software Engineer | 1-888-872-9339 KDAB, Inc. | "Platform-independent software solutions" http://kdab.com | 1-866-777-5322 (US) | +46-563-540090 (Sweden) _______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem