mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
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.
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
*-warningsdirectories) - 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