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:"