[cmake-developers] RFC/Review Request: Topic GNUInstallDirs_debian-multiarch-fix

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Mon Jan 13 03:45:05 EST 2014


Hello,

Please review the topic GNUInstallDirs_debian-multiarch-fix


GNUInstallDirs: Fix CMAKE_INSTALL_LIBDIR on Debian

When not installing in /usr (i.e. /usr/local) on Debian/Ubuntu, the
multiarch path is not in ldconfig path, and therefore libraries cannot
be found, unless the user manually modifies the files in
/etc/ld.so.conf.d, in order to include /usr/local/lib/<arch>.

This patch fixes this issue by using "lib/<arch>" only if the user is
installing the software in /usr, and uses "lib" in all the other cases.


Cheers,
 Daniele


More information about the cmake-developers mailing list