]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmakelint: fix to check root `CMakeLists.txt`
authorViktor Szakats <commit@vsz.me>
Wed, 13 Nov 2024 09:44:32 +0000 (10:44 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 13 Nov 2024 11:45:06 +0000 (12:45 +0100)
Closes #15565

scripts/cmakelint.sh

index 4eb54e145d0eee7d98179356ae0123b65ea5781d..070079656972b1b552510df8536fdad8c51316e6 100755 (executable)
@@ -43,7 +43,7 @@
     # strip off the leading ./ to make the grep regexes work properly
     find . -type f | sed 's@^\./@@'
   fi
-} | grep -E '(/CMake|\.cmake$)' | grep -v -E '(\.h\.cmake|\.in)$' \
+} | grep -E '(^CMake|/CMake|\.cmake$)' | grep -v -E '(\.h\.cmake|\.in)$' \
   | xargs \
   cmakelint \
     --spaces=2 --linelength=132 \