ecmwf / ecbuild

A CMake-based build system, consisting of a collection of CMake macros and functions that ease the managing of software build systems
https://ecbuild.readthedocs.io
Apache License 2.0
26 stars 25 forks source link

Use CMAKE_INSTALL_LIBDIR as default for INSTALL_LIB_DIR #29

Closed markjolah closed 4 years ago

markjolah commented 4 years ago

Ecbuild hardcodes the default library install location to lib, which is not a valid library install location on many platforms, e.g., those that use lib64 or multi-tiered lib/<multi-arch> directories with multiarch support. The CMake GNUInstallDirs module sets the default CMake install locations on a per-platform basis. Defaulting the INSTALL_LIB_DIR to the value of CMAKE_INSTALL_LIBDIR will allow ecbuild enabled packages to be installed to the correct system-dependent locations, as determined by CMake.

oiffrig commented 4 years ago

Merged manually.