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