Working on HDF5 package logic (when HDF5 is built using cmake) in support of https://github.com/Unidata/netcdf-c/issues/1444

This commit is contained in:
Ward Fisher 2020-04-28 14:28:55 -06:00
parent 3a9c192a83
commit 023d3e92df

View File

@ -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")