Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit fa8a8b4

Browse files
authored
Don't autoformat FetchContent.cmake. (#298)
This file comes from upstream, so let's keep it as-is. This file will be added in #290.
1 parent f269310 commit fa8a8b4

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)