From 4dcfaff73a681ef35d1c680cd7822c17a625e7e8 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Thu, 13 Oct 2022 14:55:38 -0500 Subject: [PATCH] Don't reformat catch2 with `make clang-format`. --- cmake/clang-format.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/clang-format.cmake b/cmake/clang-format.cmake index abe8d991..4398df68 100644 --- a/cmake/clang-format.cmake +++ b/cmake/clang-format.cmake @@ -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})