ECM find-modules

Andreas Pakulat apaku at gmx.de
Fri Jan 13 06:31:30 UTC 2012


On 12.01.12 22:48:10, Alexander Neundorf wrote:
> On Thursday 12 January 2012, Yury G. Kudryashov wrote:
> > Alexander Neundorf wrote:
> > > I think FindLibUSB1.cmake looks good.
> > 
> > From libusb-1.0.pc:
> > includedir=${prefix}/include
> > Cflags: -I${includedir}/libusb-1.0
> > 
> > So, PC_LIBUSB1_INCLUDE_DIR is $prefix/include and PC_LIBUSB1_INCLUDE_DIRS
> > is $prefix/include/libusb-1.0.
> >
> > Should LIBUSB1_INCLUDE_DIR and LIBUSB1_INCLUDE_DIRS follow the same logic?
> 
> Eh, what ?
> But there is only one directory added using -I to the compile command, right ?
> I don't see a reason then why LIBUSB1_INCLUDE_DIR and LIBUSB1_INCLUDE_DIRS 
> should contain different things.

I'd even go as far as saying that the .pc file is buggy if advertises
two different paths as include directory.

Andreas
 


More information about the Kde-buildsystem mailing list