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 26, 2023
1 parent 3c789c6 commit e6d9cda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netCDFConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

0 comments on commit e6d9cda

Please sign in to comment.