diff --git a/netCDFConfig.cmake.in b/netCDFConfig.cmake.in index 6f4ccf8..14a3743 100644 --- a/netCDFConfig.cmake.in +++ b/netCDFConfig.cmake.in @@ -11,6 +11,8 @@ set_and_check(netCDF_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@") set(netCDF_LIBRARIES netcdf) +find_package(HDF5 COMPONENTS C HL CONFIG REQUIRED) + # include target information include("${CMAKE_CURRENT_LIST_DIR}/netCDFTargets.cmake")