netCDFConfig: find HDF5 if needed

See: #1733
This commit is contained in:
Ben Boeckel 2023-09-06 14:43:53 -04:00
parent 3c789c6899
commit e6d9cda0e9

View File

@ -40,3 +40,8 @@ set(netCDF_HAS_DAP4 @HAS_DAP4@)
set(netCDF_HAS_DISKLESS @HAS_DISKLESS@)
set(netCDF_HAS_MMAP @HAS_MMAP@)
set(netCDF_HAS_JNA @HAS_JNA@)
if (netCDF_HAS_HDF4 OR netCDF_HAS_HDF5)
include(CMakeFindDependencyMacro)
find_dependency(HDF5)
endif ()