• Eric Noulard's avatar
    Fix #11964 Handle lib64 library on Linux · 126c993d
    Eric Noulard authored
    The AMD64 ABI document http://www.x86-64.org/documentation/abi.pdf
    does specify that 64bits binary libraries should end up in <prefix>/lib64
    and 32bits ones in <prefix>/lib. All but debian based distros do so,
    and some like OpenSUSE even enforce the rule when packaging with RPM
    and refuse to build the RPM if this is not the case.
    After some discussion (see the bug notes) we cannot do that behind
    the scene and the current fix supposes that the user shall use
    the CMAKE_INSTALL_LIBDIR variables content in its INSTALL rules if
    he wants to put the lib in the right place. CMAKE_INSTALL_LIBDIR
    shall have the appropriate value depending on the Linux distribution
    found and 32/64bitness of the host.
    The cross-compiling case (even 32bits compile on a 64bits host)
    is not handled.
Last commit
Last update
CMakeLists.txt Loading commit data...
MyLibCPackConfig-AllInOne.cmake.in Loading commit data...
MyLibCPackConfig-IgnoreGroup.cmake.in Loading commit data...
MyLibCPackConfig-OnePackPerGroup.cmake.in Loading commit data...
RunCPackVerifyResult.cmake Loading commit data...
mylib.cpp Loading commit data...
mylib.h Loading commit data...
mylibapp.cpp Loading commit data...