From 2ccd1c5889d0bd9538ca58ce745d13a5f58be44f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 13 Nov 2024 10:44:32 +0100 Subject: [PATCH] cmakelint: fix to check root `CMakeLists.txt` Closes #15565 --- scripts/cmakelint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.47.3