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.
Ecbuild hardcodes the default library install location to
lib
, which is not a valid library install location on many platforms, e.g., those that uselib64
or multi-tieredlib/<multi-arch>
directories with multiarch support. The CMake GNUInstallDirs module sets the default CMake install locations on a per-platform basis. Defaulting theINSTALL_LIB_DIR
to the value ofCMAKE_INSTALL_LIBDIR
will allow ecbuild enabled packages to be installed to the correct system-dependent locations, as determined by CMake.