summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-08-10 21:20:28 (GMT)
committerGitHub <noreply@github.com>2022-08-10 21:20:28 (GMT)
commita3e37c587b9be39ae70f6d0a2ab76d92febf7013 (patch)
tree7d8bdd1a6ff956df04e98947f6b8c4d9f1ba42a3 /examples
parent174505ca3c27daa30d8affd63bda07ad24f126c5 (diff)
downloadhdf5-a3e37c587b9be39ae70f6d0a2ab76d92febf7013.zip
hdf5-a3e37c587b9be39ae70f6d0a2ab76d92febf7013.tar.gz
hdf5-a3e37c587b9be39ae70f6d0a2ab76d92febf7013.tar.bz2
Only include and run Subfiling example when Subfiling is enabled (#1991)
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt5
-rw-r--r--examples/Makefile.am7
2 files changed, 10 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 58454c7..90a3027 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -47,8 +47,11 @@ if (H5_HAVE_PARALLEL)
ph5example
ph5_filtered_writes
ph5_filtered_writes_no_sel
- ph5_subfiling
)
+
+ if (HDF5_ENABLE_SUBFILING_VFD)
+ list (APPEND parallel_examples ph5_subfiling)
+ endif ()
endif ()
foreach (example ${examples})
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 2a02838..0ffae7f 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -20,7 +20,12 @@
include $(top_srcdir)/config/commence.am
if BUILD_PARALLEL_CONDITIONAL
- EXAMPLE_PROG_PARA = ph5example ph5_filtered_writes ph5_filtered_writes_no_sel ph5_subfiling
+ EXAMPLE_PROG_PARA = ph5example ph5_filtered_writes ph5_filtered_writes_no_sel
+
+if SUBFILING_VFD_CONDITIONAL
+ EXAMPLE_PROG_PARA += ph5_subfiling
+endif
+
endif
INSTALL_SCRIPT_FILES = run-c-ex.sh