[cmake-developers] [CMake 0015258]: 3.0.2-3.1rc2: _IMPORT_PREFIX always used even if absolute paths are in use - thus breaking build

Arkadiusz Miśkiewicz arekm at maven.pl
Mon Dec 8 17:16:52 EST 2014


On Monday 08 of December 2014, Stephen Kelly wrote:
> Arkadiusz Miśkiewicz wrote:
> 
> >> Removing CMAKE_INSTALL_LIBDIR from your command line might also cause
> >> the correct files to be generated (why are you setting that?).
> > 
> > To ensure correct libdir gets used/set the one defined in rpm (package
> > manager), not some kde/cmake one. Also user that uses rpm to build the
> > package is allowed to redefine it like rpm --define '_libdir /blagblah',
> > rpm passes that to cmake at cmdline.
> 
> Is there something equivalent for include dirs?

Yes, there is but it's not currently passed to cmake. libdir was passed 
because of lib vs lib64 issue and problems related to it in the past.

I could set includedir too but probably there is some other xxxdir that I'm 
not overriding and the whole problem will appear again, right? (unless there 
is some way to ensure that all required dirs were set at cmdline time).

> >> You might want
> >> to discuss some of this stuff on the kde mailing list because apparently
> >> those paths and variables are quite a mess.
> > 
> > I'm more interested in corectness from cmake point of view than from kde
> > point of view.
> 
> I hope that answers some of your questions.

Yes it does. Thanks.

> Thanks,
> 
> Steve.


-- 
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )


More information about the cmake-developers mailing list