Re: [CMake] pkg-config file format versus CMake packages

2018-05-31 Thread Brad King
On 05/31/2018 01:41 PM, paul wrote: > This is because cmake lacks native support for pkg-config. It only uses the > pkg-config CLI, which works fine for makefiles. > > Instead cmake needs to make a target for each `.pc` found. This could be > possible if it used libpkgconf instead. That sounds li

Re: [CMake] pkg-config file format versus CMake packages

2018-05-31 Thread paul via CMake
On Thu, 2018-05-31 at 10:12 -0400, Brad King wrote: > On 05/25/2018 07:52 PM, Paul Fultz II wrote: > > What else is missing? > > The `.pc` format focuses on flat command-line strings that drop much > of the information used to generate them. For example, if library > A depends on library B then

Re: [CMake] pkg-config file format versus CMake packages

2018-05-31 Thread Brad King
On 05/25/2018 07:52 PM, Paul Fultz II wrote: > What else is missing? The `.pc` format focuses on flat command-line strings that drop much of the information used to generate them. For example, if library A depends on library B then the `.pc` file will record the link flags -L/path/to/A/lib -

Re: [CMake] pkg-config file format versus CMake packages

2018-05-26 Thread Paul Fultz II via CMake
> On May 26, 2018, at 5:08 AM, Lectem > wrote: > > > Hi, > I’ll start by saying that I love the fact we’re now talking about a common > representation of packages ! > > The reason I say this is that extending pkg-config seems like it would help > adoption rather th

Re: [CMake] pkg-config file format versus CMake packages

2018-05-26 Thread Hendrik Sattler
Hi, I often found pkg-config files to be even wrong. Many library authors do not seem to know the rules for transitive linking. Often, the differences between static and dynamic linking is not or wrongly expressed in .pc files. Cross compiling with pkg-config is also not being the most fun unle

Re: [CMake] pkg-config file format versus CMake packages

2018-05-26 Thread Lectem
Hi, I’ll start by saying that I love the fact we’re now talking about a common representation of packages ! ➢ The reason I say this is that extending pkg-config seems like it would help adoption rather then creating a completely new format. There is already a good portion of open source projec

Re: [CMake] pkg-config file format versus CMake packages

2018-05-25 Thread Paul Fultz II via CMake
> On May 25, 2018, at 8:07 AM, Brad King wrote: > > On 05/24/2018 07:39 PM, Paul Fultz II wrote: >>> On May 24, 2018, at 8:07 AM, Brad King wrote: >>> The `.pc` file format is too flat to lend itself well to representing >>> all the information we need. >> >> What do you mean? What informatio

Re: [CMake] pkg-config file format versus CMake packages

2018-05-25 Thread Brad King
On 05/24/2018 07:39 PM, Paul Fultz II wrote: >> On May 24, 2018, at 8:07 AM, Brad King wrote: >> The `.pc` file format is too flat to lend itself well to representing >> all the information we need. > > What do you mean? What information can't be represented? Try running CMake's ExportImport te