Skip to content

Commit 0af437a

Browse files
authored
Check if mirror VFD and subfiling VFD are enabled before adding their (#5055)
respective utils subdirectories. Fixes #4984.
1 parent 3f86b4f commit 0af437a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

utils/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ endif ()
77

88
option (HDF5_BUILD_UTILS "Build HDF5 Utils" ON)
99
if (HDF5_BUILD_UTILS)
10-
add_subdirectory (mirror_vfd)
11-
add_subdirectory (subfiling_vfd)
10+
if (HDF5_ENABLE_MIRROR_VFD)
11+
add_subdirectory (mirror_vfd)
12+
endif ()
13+
if (HDF5_ENABLE_SUBFILING_VFD)
14+
add_subdirectory (subfiling_vfd)
15+
endif ()
1216
endif ()
1317

1418
#-- Add the h5dwalk and test executables

0 commit comments

Comments
 (0)