With the CMake 3.23 release candidates, the CMAKE_INSTALL_LIBDIR result variable provided by GnuInstallDirs contains the architecture name even when installing to a private location. Is this a bug or an intentional change?
Specifically, instead of lib or lib64, I am getting lib/x86_64-linux-gnu.
The documentation states that:
LIBDIRobject code libraries (
liborlib64)On Debian, this may be
lib/<multiarch-tuple>whenCMAKE_INSTALL_PREFIXis/,/usr, or/usr/local.
However, I set CMAKE_INSTALL_PREFIX to a private location, not one of the three systems locations mentioned here. Therefore, I expect to get simply lib and not lib/x86_64-linux-gnu.
Indeed, with version 3.20 I get lib, but with 3.23rc3 I get lib/x86_64-linux-gnu.
Is this a bug?
Note that this change is causing python-igraph to fail to compile on Debian, and we need to decide whether to work around it or wait for a fix: memory leak about creating igraph in for loop · Issue #517 · igraph/python-igraph · GitHub