Merge pull request #2751 from mathstuf/find-hdf5-if-needed

netCDFConfig: find HDF5 if needed
This commit is contained in:
Ward Fisher 2023-10-25 12:57:31 -06:00 committed by GitHub
commit 980c7cffb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,10 @@ 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 ()
if (@HAS_PARALLEL@)
include(CMakeFindDependencyMacro)