From 4377ba50e8e3707edc831d6e691958bd45bf35a0 Mon Sep 17 00:00:00 2001 From: easy Date: Thu, 14 Mar 2019 16:18:53 +1100 Subject: [PATCH] Don't autoformat FetchContent.cmake. This file comes from upstream, so let's keep it as-is. This file will be added in #290. --- tools/format.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/format.sh b/tools/format.sh index 6655ab7a..20fcda29 100755 --- a/tools/format.sh +++ b/tools/format.sh @@ -42,7 +42,8 @@ else fi if which cmake-format >/dev/null; then echo "Running cmake-format $(cmake-format --version 2>&1)." - cmake-format -i $($FIND -name '*CMakeLists.txt' -print -o \ + cmake-format -i $($FIND -name FetchContent.cmake -prune -o \ + -name '*CMakeLists.txt' -print -o \ -name '*.cmake' -print) else echo "Can't find cmake-format. It can be installed with:"