Skip to content

Commit

Permalink
Merge pull request #4708 from prckent/fixhdfdetection
Browse files Browse the repository at this point in the history
Update HDF5 detection
  • Loading branch information
ye-luo authored Aug 24, 2023
2 parents e5dfe55 + 48a9d35 commit d8a8227
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,15 @@ else()
set(HDF5_USE_STATIC_LIBRARIES off)
endif()

find_package(HDF5 1.10 COMPONENTS C)
find_package(HDF5 COMPONENTS C) # Note: minimum version check is done below to bypass find_package
# and HDF5 version compatibility subtleties

if(HDF5_FOUND)
if(HDF5_VERSION)
if (HDF5_VERSION VERSION_LESS 1.10.0)
message(FATAL_ERROR "QMCPACK requires HDF5 version >= 1.10.0")
endif()
endif(HDF5_VERSION)
if(HDF5_IS_PARALLEL)
if(HAVE_MPI)
message(STATUS "Parallel HDF5 library found")
Expand Down

0 comments on commit d8a8227

Please sign in to comment.