KDE/kdelibs/cmake/modules

Thiago Macieira thiago at kde.org
Sat Jan 6 18:42:56 CET 2007


Alexander Neundorf wrote:
>On Tuesday 02 January 2007 22:54, Thiago Macieira wrote:
>> But I've just realised that the cflags are there. We just are using
>> the wrong thing. Drop the includedir stuff: use cflags only.
>
>No, do not use the --cflags output for adding the include dirs !
>This breaks cmake's include dir handling.
>Because then you do
>add_definitions(${FOO_CFLAGS})

That's not what I meant.

I meant: --cflags-only-I then strip the -I part from the includes, like 
the new version of the pkg-config macro does.

>Current cmake cvs features a FindPkgConfig.cmake, which is much more
> advanced than the simple UsePkgConfig.cmake I wrote.
>With this new one we get a QCA_INCLUDE_DIRS variable which does exactly
> what we want, it asks pkgconfig for all includedirs and puts them
> nicely into a cmake list of directories which can be used with
> include_directories(). I guess I'll add this one to
> kdelibs/cmake/modules/ until we require cmake 2.4.6.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070106/8a67fd6d/attachment.pgp 


More information about the Kde-buildsystem mailing list