From: Viktor Szakats Date: Wed, 13 Nov 2024 09:44:32 +0000 (+0100) Subject: cmakelint: fix to check root `CMakeLists.txt` X-Git-Tag: curl-8_11_1~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ccd1c5889d0bd9538ca58ce745d13a5f58be44f;p=thirdparty%2Fcurl.git cmakelint: fix to check root `CMakeLists.txt` Closes #15565 --- diff --git a/scripts/cmakelint.sh b/scripts/cmakelint.sh index 4eb54e145d..0700796569 100755 --- a/scripts/cmakelint.sh +++ b/scripts/cmakelint.sh @@ -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 \