Skip to content

Commit

Permalink
Working on HDF5 package logic (when HDF5 is built using cmake) in sup…
Browse files Browse the repository at this point in the history
…port of #1444
  • Loading branch information
WardF committed Apr 28, 2020
1 parent 3a9c192 commit 023d3e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netCDFConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ set_and_check(netCDF_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
set_and_check(netCDF_LIB_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")

set(netCDF_LIBRARIES netCDF::netcdf)
if(@HAS_HDF5@ STREQUAL "yes")
find_package(HDF5 COMPONENTS C HL NO_MODULE QUIET)
endif()

# include target information
include("${CMAKE_CURRENT_LIST_DIR}/netCDFTargets.cmake")
Expand Down

0 comments on commit 023d3e9

Please sign in to comment.