cmakelint: fix to check root CMakeLists.txt

Closes #15565
This commit is contained in:
Viktor Szakats 2024-11-13 10:44:32 +01:00
parent 93e6e4b823
commit 2ccd1c5889
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -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 \