On Monday 08 December 2014 23:16:52 Arkadiusz Miśkiewicz wrote:
> 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).

A simpler fix would be to specify a relative path for the libdir (-
DCMAKE_INSTALL_LIBDIR=lib64 should work, I believe).

If you file a bug against extra-cmake-modules[0], I will investigate issuing a 
warning in KDEInstallDirs.cmake if you set some of BINDIR, LIBDIR and 
INCLUDEDIR to relative and some to absolute paths. I should also note the 
issue in the KDEInstallDirs.cmake documentation.

Alex




[0]: 
https://bugs.kde.org/enter_bug.cgi?product=extra-cmake-modules&format=guided

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to