From 46105aa7dc11e756d54eb6b6d09d0f44a6af89dc Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Fri, 26 Jan 2024 15:53:05 -0600 Subject: [PATCH] linking hdf5 to hdf5 --- libhdf5/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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)