Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,17 @@ if (HDF5_ENABLE_COVERAGE)
endif ()
endif ()

#-----------------------------------------------------------------------------
# Option to build with include-what-you-use
#-----------------------------------------------------------------------------
option(HDF5_USE_IWYU "Run include-what-you-use when compiling" OFF)

if(HDF5_USE_IWYU)
find_program(IWYU_EXE NAMES include-what-you-use REQUIRED)
set(CMAKE_C_INCLUDE_WHAT_YOU_USE ${IWYU_EXE})
set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_EXE})
endif()

#-----------------------------------------------------------------------------
# Option to indicate using a memory checker
#-----------------------------------------------------------------------------
Expand Down
8 changes: 8 additions & 0 deletions release_docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ We would like to thank the many HDF5 community members who contributed to HDF5 2

## Configuration

### Added CMake support for include-what-you-use

Adds an `HDF5_USE_IWYU` option to CMake (default OFF). This will run the `include-what-you-use` tool while compiling.

See https://include-what-you-use.org/ for more information.

This requires `include-what-you-use` to be installed.

### Improved the cross-compile support in the build system

The CMake build system has been improved to better support cross-compiling. This includes the following changes:
Expand Down
Loading