<commit_before>#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0.  See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#

add_library(adios2_h5vol
  H5VolReadWrite.c
  H5Vol.c
  H5VolUtil.c
  H5Vol_attr.c
  H5Vol_dataset.c
  H5Vol_file.c
  H5Vol_group.c
  H5Vol_link.c
  H5Vol_object.c
)
target_include_directories(adios2_h5vol PRIVATE ${HDF5_C_INCLUDE_DIRS})	 
target_link_libraries(adios2_h5vol PRIVATE
  ${HDF5_C_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
)
if(NOT HDF5_IS_PARALLEL)
  target_link_libraries(adios2_h5vol PRIVATE adios2::c)
elseif(HDF5_IS_PARALLEL AND ADIOS2_HAVE_MPI)
  target_link_libraries(adios2_h5vol PRIVATE adios2::c_mpi MPI::MPI_C)
else() # HDF5_IS_PARALLEL AND NOT ADIOS2_HAVE_MPI
  message(FATAL_ERROR "Invalid configuration: HDF5_IS_PARALLEL AND NOT ADIOS2_HAVE_MPI")
endif()

install(FILES H5Vol_def.h H5VolError.h H5Vol.h H5VolReadWrite.h H5VolUtil.h
  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/adios2/h5vol
  COMPONENT adios2_h5vol
)
install(TARGETS adios2_h5vol<commit_msg>added check that HDF5 version is > 1.12<commit_after>#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0.  See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#

add_library(adios2_h5vol
  H5VolReadWrite.c
  H5Vol.c
  H5VolUtil.c
  H5Vol_attr.c
  H5Vol_dataset.c
  H5Vol_file.c
  H5Vol_group.c
  H5Vol_link.c
  H5Vol_object.c
)
target_include_directories(adios2_h5vol PRIVATE ${HDF5_C_INCLUDE_DIRS})	 
target_link_libraries(adios2_h5vol PRIVATE
  ${HDF5_C_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
)

message(STATUS "HDF5_VERSION=${HDF5_VERSION}")
if (HDF5_VERSION)
  if (HDF5_VERSION VERSION_LESS "1.13")
    message(FATAL_ERROR "HDF5 version 1.13+ is required")
  endif()
else()
  message(WARNING "Version of HDF5 is unknown, but version 1.13+ is required.")
endif()

if(NOT HDF5_IS_PARALLEL)
  target_link_libraries(adios2_h5vol PRIVATE adios2::c)
elseif(HDF5_IS_PARALLEL AND ADIOS2_HAVE_MPI)
  target_link_libraries(adios2_h5vol PRIVATE adios2::c_mpi MPI::MPI_C)
else() # HDF5_IS_PARALLEL AND NOT ADIOS2_HAVE_MPI
  message(FATAL_ERROR "Invalid configuration: HDF5_IS_PARALLEL AND NOT ADIOS2_HAVE_MPI")
endif()

install(FILES H5Vol_def.h H5VolError.h H5Vol.h H5VolReadWrite.h H5VolUtil.h
  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/adios2/h5vol
  COMPONENT adios2_h5vol
)
install(TARGETS adios2_h5vol
{'fraction_non_alphanumeric': 0.18977272727272726, 'fraction_numerical': 0.03977272727272727, 'mean_word_length': 3.212121212121212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2823011', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1026, 'n_words': 171}