[cmake-developers] Using pkgconf

Brad King brad.king at kitware.com
Wed Jun 13 08:54:01 EDT 2018


On 06/12/2018 12:11 PM, Paul Fultz II via cmake-developers wrote:
> https://github.com/pkgconf/pkgconf
> 
> CMake could use pkgconf internally

The license looks MIT-like.

Please confirm that it is at least BSD-3 compatible.

> find_package(zlib CONF)
> 
> And this would look up zlib using pkgconfig

An important distinction is that `find_package` is meant for whole
packages that may contain multiple libraries and components, while
IIUC a `.pc` file is equivalent to a single CMake target.  We'll
need a way to reconcile that.  Does pkgconfig have conventions for
meta-packages that cover multiple components?

Also, how should version matching work?

Thanks,
-Brad


More information about the cmake-developers mailing list