CMAKE_INSTALL_LIBDIR documentation is incorrect
The docs (https://cmake.org/cmake/help/v3.15/module/GNUInstallDirs.html) say:
LIBDIR
object code libraries (lib or lib64 or lib/<multiarch-tuple> on Debian)
- does not match reality on
debian:latest
, where CMAKE_INSTALL_LIBDIR is set tolib
(cmake 3.7, but see below) - nor does it match the code comments:
https://gitlab.kitware.com/cmake/cmake/blob/18365587c86396f988e256b5acf4d2312f3be2bb/Modules/GNUInstallDirs.cmake#L210-212
# For Debian with multiarch, use 'lib/${CMAKE_LIBRARY_ARCHITECTURE}' if # CMAKE_LIBRARY_ARCHITECTURE is set (which contains e.g. "i386-linux-gnu" # and CMAKE_INSTALL_PREFIX is "/usr"
Edited by Brad King