mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
cmakelint: also lint CMake .in files, fix a long line
```
CMakeConfigurableFile.in
cmake_uninstall.cmake.in
curl-config.cmake.in
```
Follow-up to 16f073ef49 #16973
Closes #19773
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
###########################################################################
|
||||
@PACKAGE_INIT@
|
||||
|
||||
option(CURL_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies. Default: @CURL_USE_PKGCONFIG@" "@CURL_USE_PKGCONFIG@")
|
||||
option(CURL_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies. Default: @CURL_USE_PKGCONFIG@"
|
||||
"@CURL_USE_PKGCONFIG@")
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ cd "$(dirname "$0")"/..
|
||||
# strip off the leading ./ to make the grep regexes work properly
|
||||
find . -type f | sed 's@^\./@@'
|
||||
fi
|
||||
} | grep -E '(^CMake|/CMake|\.cmake$)' | grep -v -E '(\.h\.cmake|\.in|\.c)$' \
|
||||
} | grep -E '(^CMake|/CMake|\.cmake$)' | grep -v -E '(\.h\.cmake|\.c)$' \
|
||||
| xargs \
|
||||
cmake-lint \
|
||||
--suppress-decorations \
|
||||
|
||||
Reference in New Issue
Block a user