From 45b843e40bd5105b294087bdcf201f14e3dcb8d0 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Mon, 16 Oct 2023 15:34:14 -0600 Subject: [PATCH] Enable find of HDF5 TPL using modern CMake files --- cmake/tribits/common_tpls/FindTPLHDF5.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/tribits/common_tpls/FindTPLHDF5.cmake b/cmake/tribits/common_tpls/FindTPLHDF5.cmake index c94a502625..71e0dd640e 100644 --- a/cmake/tribits/common_tpls/FindTPLHDF5.cmake +++ b/cmake/tribits/common_tpls/FindTPLHDF5.cmake @@ -11,13 +11,14 @@ if (Netcdf_ALLOW_MODERN) find_package(HDF5 CONFIG) if (HDF5_FOUND) message("-- Found HDF5_CONFIG=${HDF5_CONFIG}") - message("-- Generating Netcdf::all_libs and NetcdfConfig.cmake") + message("-- Generating HDF5::all_libs and HDF5Config.cmake") message("-- HDF5_EXPORT_LIBRARIES=${HDF5_EXPORT_LIBRARIES}") tribits_extpkg_create_imported_all_libs_target_and_config_file( HDF5 INNER_FIND_PACKAGE_NAME HDF5 IMPORTED_TARGETS_FOR_ALL_LIBS ${HDF5_EXPORT_LIBRARIES}) set(HDF5_INTERNAL_IS_MODERN TRUE) + set(TPL_HDF5_NOT_FOUND FALSE) else() message("-- Could not find HDF5_CONFIG (FindTPLHDF5.cmake)") endif()