Skip to content

Commit 4377ba5

Browse files
committed
Don't autoformat FetchContent.cmake.
This file comes from upstream, so let's keep it as-is. This file will be added in census-instrumentation#290.
1 parent 2c2e4c7 commit 4377ba5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/format.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ else
4242
fi
4343
if which cmake-format >/dev/null; then
4444
echo "Running cmake-format $(cmake-format --version 2>&1)."
45-
cmake-format -i $($FIND -name '*CMakeLists.txt' -print -o \
45+
cmake-format -i $($FIND -name FetchContent.cmake -prune -o \
46+
-name '*CMakeLists.txt' -print -o \
4647
-name '*.cmake' -print)
4748
else
4849
echo "Can't find cmake-format. It can be installed with:"

0 commit comments

Comments
 (0)