Skip to content
Snippets Groups Projects
  • Christian Sharpsten's avatar
    3e67c1d4
    Auto-detect install libdir to enable multi-arch debian builds (#345) · 3e67c1d4
    Christian Sharpsten authored
    When compiling on linux, use GNUInstallDirs to automatically determine
    the appropriate libdir path for multi-arch builds instead of hardcoding
    lib/ or lib64/. GNUInstallDirs should follow the FHS appropriately for
    non-debian platforms that place libs in lib64/. This also removes the
    need to specify `lib64` on the command line when building for a
    non-debian system that follows the linux FHS.
    
    When compiling with cmake directly on debian and specifying
    `-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_LIBRARY_ARCHITECTURE=<arch>`, the
    libdir should be set to /usr/lib/<arch>/.
    3e67c1d4
    History
    Auto-detect install libdir to enable multi-arch debian builds (#345)
    Christian Sharpsten authored
    When compiling on linux, use GNUInstallDirs to automatically determine
    the appropriate libdir path for multi-arch builds instead of hardcoding
    lib/ or lib64/. GNUInstallDirs should follow the FHS appropriately for
    non-debian platforms that place libs in lib64/. This also removes the
    need to specify `lib64` on the command line when building for a
    non-debian system that follows the linux FHS.
    
    When compiling with cmake directly on debian and specifying
    `-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_LIBRARY_ARCHITECTURE=<arch>`, the
    libdir should be set to /usr/lib/<arch>/.