Skip to content

GNUInstallDirs: Revert "Apply Debian multiarch LIBDIR to more prefixes"

Revert !6748 (merged). There are separate problems with activating multiarch LIBDIR for each prefix it added:

  • Prefix / is often used to stage an installation with DESTDIR for inclusion in a tarball package or similar.

  • Prefix /usr/local is the default CMAKE_INSTALL_PREFIX, causing the multiarch LIBDIR to be cached after the first configuration, even if the prefix changes later.

Revert the change for now, except for the documentation update. Further discussion will be needed to select a way to enable multiarch LIBDIR for / and /usr/local.

Fixes: #23365 (closed)
Issue: #19698 (closed)
Backport: release

Merge request reports