Skip to content

Commit

Permalink
netCDFConfig: find HDF5 if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf committed Sep 6, 2023
1 parent 3c789c6 commit 1eb5c2f
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,3 +40,7 @@ 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)
find_dependency(HDF5)
endif ()

0 comments on commit 1eb5c2f

Please sign in to comment.