Skip to content

Commit

Permalink
Merge pull request #414 from clintonstimpson/tpl-findhdf5
Browse files Browse the repository at this point in the history
Enable find of HDF5 TPL using modern CMake files
  • Loading branch information
gsjaardema authored Oct 16, 2023
2 parents 71702b7 + 45b843e commit 0a78590
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 0a78590

Please sign in to comment.