message: engine: Re-organize and de-duplicate HDF5 engine source list
diff: @@ -238,30 +238,26 @@ if(ADIOS2_HAVE_MPI)
  endif()
  if(ADIOS2_HAVE_HDF5)
  - if(HDF5_C_INCLUDE_DIRS)
  - target_include_directories(adios2 PRIVATE ${HDF5_C_INCLUDE_DIRS})
  - else()
  - target_include_directories(adios2 PRIVATE ${HDF5_INCLUDE_DIRS})
  - endif()
  -
  - if(HDF5_VERSION VERSION_LESS 1.11)
  target_sources(adios2 PRIVATE
  engine/hdf5/HDF5ReaderP.cpp
  engine/hdf5/HDF5WriterP.cpp
  toolkit/interop/hdf5/HDF5Common.cpp toolkit/interop/hdf5/HDF5Common.tcc
  )
  - else()
  + if(NOT HDF5_VERSION VERSION_LESS 1.11)
  target_sources(adios2 PRIVATE
  - engine/hdf5/HDF5ReaderP.cpp
  - engine/hdf5/HDF5WriterP.cpp
  engine/mixer/HDFMixer.cpp
  engine/mixer/HDFMixer.tcc
  engine/mixer/HDFMixerWriter.cpp
  - toolkit/interop/hdf5/HDF5Common.cpp toolkit/interop/hdf5/HDF5Common.tcc
  )
  endif()
  target_link_libraries(adios2 PRIVATE ${HDF5_C_LIBRARIES})
  +
  + if(HDF5_C_INCLUDE_DIRS)
  + target_include_directories(adios2 PRIVATE ${HDF5_C_INCLUDE_DIRS})
  + else()
  + target_include_directories(adios2 PRIVATE ${HDF5_INCLUDE_DIRS})
  + endif()
  endif()
  # Set library version information
  