From 0af437a61eac0376b9296ca26aa524229c193a42 Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Fri, 1 Nov 2024 07:55:31 -0500 Subject: [PATCH] Check if mirror VFD and subfiling VFD are enabled before adding their (#5055) respective utils subdirectories. Fixes #4984. --- utils/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index b7e4630c07e..e7d783d789b 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -7,8 +7,12 @@ endif () option (HDF5_BUILD_UTILS "Build HDF5 Utils" ON) if (HDF5_BUILD_UTILS) - add_subdirectory (mirror_vfd) - add_subdirectory (subfiling_vfd) + if (HDF5_ENABLE_MIRROR_VFD) + add_subdirectory (mirror_vfd) + endif () + if (HDF5_ENABLE_SUBFILING_VFD) + add_subdirectory (subfiling_vfd) + endif () endif () #-- Add the h5dwalk and test executables