From d50f07f40c53d0da2580652fd1616d5f7850580d Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Thu, 31 Oct 2024 09:25:02 -0500 Subject: [PATCH] Check if mirror VFD and subfiling VFD are enabled before adding their respective utils subdirectories. --- 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