]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmakelint: also lint CMake `.in` files, fix a long line
authorViktor Szakats <commit@vsz.me>
Sun, 30 Nov 2025 22:27:06 +0000 (23:27 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 30 Nov 2025 23:03:07 +0000 (00:03 +0100)
```
CMakeConfigurableFile.in
cmake_uninstall.cmake.in
curl-config.cmake.in
```

Follow-up to 16f073ef49f94412000218c9f6ad04e3fd7e4d01 #16973
Closes #19773

CMake/curl-config.cmake.in
scripts/cmakelint.sh

index c4e9f59e863b1dd5e726ac44b194ab51268079ef..33d540da27c85141f087b3cdf551f220ff575f63 100644 (file)
@@ -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)
 
index 325a07b5e6cb0baec1a17d8697a16fcd6ffefa10..1e1cc592ed3f6ac786050e203c06754fd6ed658b 100755 (executable)
@@ -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 \