Don't reformat catch2 with `make clang-format`.

This commit is contained in:
Brenden Matthews 2022-10-13 14:55:38 -05:00
parent b06f658ebf
commit 4dcfaff73a
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ endforeach()
file(GLOB_RECURSE ClangFormat_SRCS ${ClangFormat_CXX_PATTERN})
# Remove catch2 from format sources
list(REMOVE_ITEM ClangFormat_SRCS ${CMAKE_SOURCE_DIR}/tests/catch2/catch.hpp)
add_custom_target(clang-format
COMMAND ${ClangFormat_BIN} -style=file -i
${ClangFormat_SRCS})