diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-01 15:39:03 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-01 15:39:03 (GMT) |
commit | 753adc730358861c489c1da7e4ccd018af6b351c (patch) | |
tree | a3545e5f0dfa63f636f171f30f116eb532272cb1 /c++/src | |
parent | 06e367c49b1d0e0875a3aae69817fbceb4020aa9 (diff) | |
download | hdf5-753adc730358861c489c1da7e4ccd018af6b351c.zip hdf5-753adc730358861c489c1da7e4ccd018af6b351c.tar.gz hdf5-753adc730358861c489c1da7e4ccd018af6b351c.tar.bz2 |
Merge clang-format changes from develop
Diffstat (limited to 'c++/src')
-rw-r--r-- | c++/src/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt index 0b2aeed..bc8ff8d 100644 --- a/c++/src/CMakeLists.txt +++ b/c++/src/CMakeLists.txt @@ -131,6 +131,17 @@ if (BUILD_SHARED_LIBS) endif () #----------------------------------------------------------------------------- +# Add Target to clang-format +#----------------------------------------------------------------------------- +if (HDF5_ENABLE_FORMATTERS) + if (NOT ONLY_SHARED_LIBS) + clang_format (HDF5_CPP_SRC_FORMAT ${HDF5_CPP_LIB_TARGET}) + else () + clang_format (HDF5_CPP_SRC_FORMAT ${HDF5_CPP_LIBSH_TARGET}) + endif () +endif () + +#----------------------------------------------------------------------------- # Add file(s) to CMake Install #----------------------------------------------------------------------------- install ( |