diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-03-14 22:09:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 22:09:19 (GMT) |
commit | 066536a56fdfe2eecc7384549dbdfe839bf9160d (patch) | |
tree | ce512e10229426040f336dbccf0e7f7f8439c3d3 /tools/src/h5copy | |
parent | fd4f26a8c1d9d5fec0a0807ae7007394605b46c7 (diff) | |
download | hdf5-066536a56fdfe2eecc7384549dbdfe839bf9160d.zip hdf5-066536a56fdfe2eecc7384549dbdfe839bf9160d.tar.gz hdf5-066536a56fdfe2eecc7384549dbdfe839bf9160d.tar.bz2 |
Make sure that ONLY_SHARED_LIBS option is correctly set (#2547)
Diffstat (limited to 'tools/src/h5copy')
-rw-r--r-- | tools/src/h5copy/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5copy/CMakeLists.txt b/tools/src/h5copy/CMakeLists.txt index 2f924a2..9bf98cc 100644 --- a/tools/src/h5copy/CMakeLists.txt +++ b/tools/src/h5copy/CMakeLists.txt @@ -4,7 +4,7 @@ project (HDF5_TOOLS_SRC_H5COPY C) # -------------------------------------------------------------------- # Add the h5copy and test executables # -------------------------------------------------------------------- -if (NOT ONLY_SHARED_LIBS) +if (BUILD_STATIC_LIBS) add_executable (h5copy ${HDF5_TOOLS_SRC_H5COPY_SOURCE_DIR}/h5copy.c) target_include_directories (h5copy PRIVATE "${HDF5_TOOLS_DIR}/lib;${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>") target_compile_options(h5copy PRIVATE "${HDF5_CMAKE_C_FLAGS}") @@ -32,7 +32,7 @@ endif () # Add Target to clang-format #----------------------------------------------------------------------------- if (HDF5_ENABLE_FORMATTERS) - if (NOT ONLY_SHARED_LIBS) + if (BUILD_STATIC_LIBS) clang_format (HDF5_H5COPY_SRC_FORMAT h5copy) else () clang_format (HDF5_H5COPY_SRC_FORMAT h5copy-shared) |