diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-07-13 17:19:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 17:19:02 (GMT) |
commit | 26059fc7abd51827d0e7a798fac1cfa7461db7d3 (patch) | |
tree | d429feaa8d22f72f7415330c895d2562f405e46d /src/H5FDsubfiling/CMakeLists.txt | |
parent | b77d5bacea7f004153b2752a9cb17d26ae975cf9 (diff) | |
download | hdf5-26059fc7abd51827d0e7a798fac1cfa7461db7d3.zip hdf5-26059fc7abd51827d0e7a798fac1cfa7461db7d3.tar.gz hdf5-26059fc7abd51827d0e7a798fac1cfa7461db7d3.tar.bz2 |
Subfiling VFD source cleanup (#3241)
* Subfiling VFD source cleanup
Modularize Subfiling CMake code into separate CMakeLists.txt file
Update Mercury util code to latest version and update Copyright
Generate mercury_util_config.h header file instead of using
pre-generated file
Remove unnecessary Mercury functionality
Fix minor warning in Subfiling VFD code
* Remove Mercury headers from Autotools publicly-distributed header list
Diffstat (limited to 'src/H5FDsubfiling/CMakeLists.txt')
-rw-r--r-- | src/H5FDsubfiling/CMakeLists.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/H5FDsubfiling/CMakeLists.txt b/src/H5FDsubfiling/CMakeLists.txt new file mode 100644 index 0000000..89cd0c2 --- /dev/null +++ b/src/H5FDsubfiling/CMakeLists.txt @@ -0,0 +1,53 @@ +cmake_minimum_required (VERSION 3.18) +project (HDF5_H5FD_SUBFILING C) + +# Sanity checking +if (NOT H5FD_SOURCES) + message (FATAL_ERROR "internal configure error - H5FD_SOURCES not set") +endif () +if (NOT H5FD_HDRS) + message (FATAL_ERROR "internal configure error - H5FD_HDRS not set") +endif () +if (NOT H5FD_SUBFILING_DIR) + message (FATAL_ERROR "internal configure error - H5FD_SUBFILING_DIR not set") +endif () +if (NOT H5FD_SUBFILING_MERCURY_DIR) + message (FATAL_ERROR "internal configure error - H5FD_SUBFILING_MERCURY_DIR not set") +endif () + +# Add mercury util sources to Subfiling VFD sources +set (MERCURY_UTIL_SOURCES + ${H5FD_SUBFILING_MERCURY_DIR}/mercury_thread.c + ${H5FD_SUBFILING_MERCURY_DIR}/mercury_thread_condition.c + ${H5FD_SUBFILING_MERCURY_DIR}/mercury_thread_pool.c + ${H5FD_SUBFILING_MERCURY_DIR}/mercury_thread_mutex.c +) + +set (HDF5_H5FD_SUBFILING_SOURCES + ${H5FD_SUBFILING_DIR}/H5FDioc.c + ${H5FD_SUBFILING_DIR}/H5FDioc_int.c + ${H5FD_SUBFILING_DIR}/H5FDioc_threads.c + ${H5FD_SUBFILING_DIR}/H5FDsubfiling.c + ${H5FD_SUBFILING_DIR}/H5FDsubfile_int.c + ${H5FD_SUBFILING_DIR}/H5subfiling_common.c + ${MERCURY_UTIL_SOURCES} +) + +set (HDF5_H5FD_SUBFILING_HEADERS + ${H5FD_SUBFILING_DIR}/H5FDsubfiling.h + ${H5FD_SUBFILING_DIR}/H5FDioc.h +) + +# Add Subfiling VFD sources to HDF5 library's H5FD sources +set (H5FD_SOURCES + ${H5FD_SOURCES} + ${HDF5_H5FD_SUBFILING_SOURCES} + PARENT_SCOPE +) + +# Add Subfiling VFD public headers to HDF5 library's public H5FD headers +set (H5FD_HDRS + ${H5FD_HDRS} + ${HDF5_H5FD_SUBFILING_HEADERS} + PARENT_SCOPE +) |