Bill Hoffman <[EMAIL PROTECTED]> 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
pgpR3mJbl0YYa.pgp
Description: PGP signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
