mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
On SunOS the C and C++ flag files appended the single string "-erroff=%none -DBSD_COMP" to HDF5_CMAKE_C/CXX_FLAGS. Because that is one list element, target_compile_options() hands it to the compiler as one argument, and -erroff is an Oracle Developer Studio option to begin with. gcc silently ignores the result (it parses the leading -e as the linker entry-symbol option), but clang errors out: clang: error: unknown argument: '-erroff=%none -DBSD_COMP' which breaks the build on the first object file. As a side effect, -DBSD_COMP was never actually reaching the compiler as a define. Emit -erroff=%none only for SunPro, and append -DBSD_COMP as its own list element so it is passed as a separate argument on all Solaris compilers. Fixes #6569 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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 files in the docs/ directory: