need to check Xi lib version

Andriy Rysin arysin at gmail.com
Mon Mar 16 01:22:34 GMT 2009


2009/3/14 Gabriel C <crazy at frugalware.org>:
> 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




More information about the kde-core-devel mailing list