Files
hdf5/config
Chuck AtkinsandLarry Knox 4d666721f4 Fix INSTALL_CMAKE_DIR for GNU_DIRS and enable by default on Linux. (#6410)
The previous `lib/cmake/hdf5-config.cmake` isn't in CMake's find_package
search path since CMake expects that to be a common path with each
package having it's own subdirectory. This changes it to
`lib/cmake/hdf5/hdf5-config.cmake` so the config is now found when the
install prefix is in `CMAKE_PREFIX_PATH`.
This also sets `HDF5_USE_GNU_DIRS=ON` by default for non-Windows builds.

Fixes #6137

Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
2026-07-20 11:59:13 -05:00
..
2026-03-16 17:10:34 -05:00

The config directory

Intro

HDF5 can be configured using CMake.

Configuration information for the HDF5 library and tools is specific to the repository folders. Each subdirectory of the project has its own CMake build and test files. Basic library configuration will generally be found in the root's CMakeLists.txt with support for macros and settings in this config directory.

This directory contains a few important things:

  • Support files for optional components (in cmake)
  • Compiler and platform parameters (in flags)
  • Warning files (in *-warnings directories)
  • Toolchain files (in toolchain)
  • Sanitizer files (in sanitizer)
  • Example install scripts (in examples)
  • Installation support files (in install)

CMake is documented in the following files in the docs/ directory: