Skip to content

Commit

Permalink
Enable find of HDF5 TPL using modern CMake files
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonstimpson committed Oct 16, 2023
1 parent 73cfb81 commit 45b843e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/tribits/common_tpls/FindTPLHDF5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 45b843e

Please sign in to comment.