summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-04-04 16:36:23 (GMT)
committerGitHub <noreply@github.com>2023-04-04 16:36:23 (GMT)
commitf13f8705b18dbd21ea08192d7167a24a4f5309fe (patch)
treead510e8ff9fbf858822d921b65d3f8120fe9f226 /utils
parentec0d4d64867923577c7680c94bf4d51558664693 (diff)
downloadhdf5-f13f8705b18dbd21ea08192d7167a24a4f5309fe.zip
hdf5-f13f8705b18dbd21ea08192d7167a24a4f5309fe.tar.gz
hdf5-f13f8705b18dbd21ea08192d7167a24a4f5309fe.tar.bz2
Make sure that ONLY_SHARED_LIBS option is correctly set (#2545)
Diffstat (limited to 'utils')
-rw-r--r--utils/tools/h5dwalk/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/tools/h5dwalk/CMakeLists.txt b/utils/tools/h5dwalk/CMakeLists.txt
index 8c8ed62..9e4eb6d 100644
--- a/utils/tools/h5dwalk/CMakeLists.txt
+++ b/utils/tools/h5dwalk/CMakeLists.txt
@@ -4,7 +4,7 @@ project (HDF5_UTILS_TOOLS_H5DWALK C)
# --------------------------------------------------------------------
# Add the h5dwalk and test executables
# --------------------------------------------------------------------
-if (NOT ONLY_SHARED_LIBS)
+if (BUILD_STATIC_LIBS)
add_executable (h5dwalk ${HDF5_UTILS_TOOLS_H5DWALK_SOURCE_DIR}/h5dwalk.c)
# add_custom_target(generate_demo ALL
# DEPENDS "${HDF5_TOOLS_DIR}/test/demo_destfiles.test"
@@ -35,7 +35,7 @@ endif ()
# Add Target to clang-format
#-----------------------------------------------------------------------------
if (HDF5_ENABLE_FORMATTERS)
- if (NOT ONLY_SHARED_LIBS)
+ if (BUILD_STATIC_LIBS)
clang_format (HDF5_H5DWALK_SRC_FORMAT h5dwalk)
else ()
clang_format (HDF5_H5DWALK_SRC_FORMAT h5dwalk-shared)