summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard Warren <Richard.Warren@hdfgroup.org>2021-09-23 21:13:43 (GMT)
committerRichard Warren <Richard.Warren@hdfgroup.org>2021-09-23 21:13:43 (GMT)
commit57fcf0f4b3dcde37b0d0fc54d543a60148518cf7 (patch)
treedcfe9b7d2a0e1a953d295c79a6719de9ecae5d69 /CMakeLists.txt
parent9c05b222cc1cb74f303139fe7239d95c4c0f0b5f (diff)
downloadhdf5-57fcf0f4b3dcde37b0d0fc54d543a60148518cf7.zip
hdf5-57fcf0f4b3dcde37b0d0fc54d543a60148518cf7.tar.gz
hdf5-57fcf0f4b3dcde37b0d0fc54d543a60148518cf7.tar.bz2
Merged my subfiling code fixes into the new selection_io_branch
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 04e34f1..d142e0e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -731,6 +731,20 @@ if (H5_HAVE_PARALLEL)
endif ()
endif ()
+# see other find_package examples in /usr/share/cmake/Modules
+option (HDF5_BUILD_SUBFILING "Build Parallel HDF5 Subfiling" OFF)
+if (HDF5_BUILD_SUBFILING AND HDF5_ENABLE_PARALLEL)
+ find_package(MERCURY REQUIRED)
+ if (MERCURY_FOUND)
+ message("Mercury include dir: ${MERCURY_INCLUDE_DIR}")
+ include_directories(${MERCURY_INCLUDE_DIR})
+ set (H5_HAVE_LIBMERCURY 1)
+ set (H5_HAVE_MERCURY_H 1)
+ set (CMAKE_REQUIRED_INCLUDES "${MERCURY_INCLUDE_DIR}")
+ set (LINK_LIBS ${LINK_LIBS} ${MERCURY_LIBRARIES})
+ endif()
+endif()
+
#option (DEFAULT_API_VERSION "Enable v1.14 API (v16, v18, v110, v112, v114)" "v114")
set (DEFAULT_API_VERSION "v114" CACHE STRING "Enable v1.14 API (v16, v18, v110, v112, v114)")
set_property (CACHE DEFAULT_API_VERSION PROPERTY STRINGS v16 v18 v110 v112 v114)