[CMake] Re: [ANN] New PkgConfig module
Enrico Scholz
enrico.scholz at informatik.tu-chemnitz.de
Tue Oct 31 10:34:51 EST 2006
Bill Hoffman <bill.hoffman at kitware.com>
writes:
>>> I wrote a new pkg-config module which is available at
>>>
>>> http://ensc.de/cmake/FindPkgConfig.cmake
>>>
>
> It would be great if this was backwards compatible with the
> UsePkgConfig.cmake that is in cmake now:
> It should be easy to do, just implement this macro:
>
> PKGCONFIG(package includedir libdir linkflags cflags)
Ok; uploaded to location above (see dir for previous version). The
| PKGCONFIG(xi foo_i foo_l foo_ldflags foo_cflags)
| message("foo_i='${foo_i}'")
| message("foo_l='${foo_l}'")
| message("foo_ldflags='${foo_ldflags}'")
| message("foo_cflags='${foo_cflags}'")
gives out
| foo_i='/usr/include'
| foo_l='/usr/lib'
| foo_ldflags='-lXi'
| foo_cflags='
| '
with current UsePkgConfig. And
| -- WARNING: you are using the obsolete 'PKGCONFIG' macro
| -- checking for module 'xi'
| -- found xi, version 1.0.0
| foo_i='/usr/include'
| foo_l='/usr/lib'
| foo_ldflags='-lXi'
| foo_cflags=''
with new version.
I hope that fixing the bug with the newline in the cflags does not break
backward compatibility ;)
Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20061031/0c03f38d/attachment.pgp
More information about the CMake
mailing list