[CMake] libdir question

Alexander Neundorf a.neundorf-work at gmx.net
Thu Mar 3 11:43:10 EST 2011


On Wednesday 02 March 2011, Frans de Boer wrote:
> Dear Readers,
>
> I guess that my question has been asked many time before, but I could
> not find it. So her it is (again): Using './configure --libdir=...' one
> can set the base directory where the libraries are supposed to be
> placed. CMake has so many options, which also need to be modified in the
> CMakeLists.txt file that it is bewildering. Can anybody help me how I
> can specify a different library directory - lib64 - instead of the
> standard 'lib'. I want to keep my system clean without the /usr/lib
> directory being cluttered with 64-bit libraries.

This is not standardized by cmake, every project using it is free to do as it 
wants to.
For KDE-based software there is LIB_INSTALL_DIR, which you can set via the 
cache or via -D to any place you want.

Alex


More information about the CMake mailing list