Files
hdf5/config
Allen Byrne fb35cde24a Rework Fortran configure to allow cross compile overrides (#5720)
Behavior:
Modify HDF5UseFortran.cmake to handle cross-compilation by providing default KINDs and sizes when CMAKE_CROSSCOMPILING is true.
Default values for INTEGER and REAL KINDs and their sizes are set when cross-compiling.
Error messages are adjusted to reflect cross-compilation scenarios.
Logic:
Conditional checks added for CMAKE_CROSSCOMPILING to determine if default values should be used.
Default values include INTEGER KINDs {1,2,4,8,16} and REAL KINDs {4,8,10,16}.
Default sizes for native kinds are set to 4 for INTEGER and REAL, and 8 for DOUBLE PRECISION when cross-compiling.
Misc:
Adjustments to verbose messages to indicate when defaults are used during cross-compilation.
2025-10-12 17:30:46 -05:00
..
2025-08-13 07:06:07 -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 in the root's release_docs folder files:

  • INSTALL
  • INSTALL_CMake.txt
  • USING_HDF5_CMake.txt
  • USING_HDF5_VS.txt
  • INSTALL_Windows.txt
  • USING_CMake_Examples.txt