Skip to content

Commit

Permalink
Merge pull request #2751 from mathstuf/find-hdf5-if-needed
Browse files Browse the repository at this point in the history
netCDFConfig: find HDF5 if needed
  • Loading branch information
WardF authored Oct 25, 2023
2 parents 12aa290 + f3c0fb5 commit 980c7cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netCDFConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 980c7cf

Please sign in to comment.