if(HDF5_FOUND)
    return()
endif()

set(HDF5_FOUND TRUE CACHE INTERNAL "")
set(HDF5_VERSION "${ogs.tested_version.hdf5}" CACHE INTERNAL "")
set(HDF5_DEFINITIONS "" CACHE INTERNAL "")
set(HDF5_INCLUDE_DIRS ${CONAN_INCLUDE_DIRS_HDF5} CACHE INTERNAL "")
foreach(LIB ${CONAN_LIBS_HDF5})
    find_library(HDF5_LIB NAMES ${LIB} PATHS ${CONAN_LIB_DIRS_HDF5})
    list(APPEND HDF5_LIBRARIES ${HDF5_LIB})
endforeach()
set(HDF5_LIBRARIES ${HDF5_LIBRARIES} CACHE INTERNAL "")
message(STATUS "Found HDF5 ${ogs.tested_version.hdf5} via Conan: ${CONAN_HDF5_ROOT}")
