From a3e37c587b9be39ae70f6d0a2ab76d92febf7013 Mon Sep 17 00:00:00 2001 From: jhendersonHDF Date: Wed, 10 Aug 2022 16:20:28 -0500 Subject: Only include and run Subfiling example when Subfiling is enabled (#1991) --- examples/CMakeLists.txt | 5 ++++- examples/Makefile.am | 7 ++++++- 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 -- cgit v0.12