diff --git a/libhdf5/CMakeLists.txt b/libhdf5/CMakeLists.txt index b88ee4e5a2..769d344063 100644 --- a/libhdf5/CMakeLists.txt +++ b/libhdf5/CMakeLists.txt @@ -23,5 +23,7 @@ if(STATUS_PARALLEL) target_link_libraries(netcdfhdf5 PUBLIC MPI::MPI_C) endif(STATUS_PARALLEL) +target_include_directories(netcdfhdf5 PRIVATE ${HDF5_INCLUDE_DIR}) + # Remember to package this file for CMake builds. add_extra_dist(${libnchdf5_SOURCES} CMakeLists.txt)