1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-12-24 19:37:49 +03:00

cmakelint: also lint CMake .in files (fixup), fix a long line

Follow-up to 9e4d307e67 #1751
This commit is contained in:
Viktor Szakats
2025-12-01 14:57:09 +01:00
parent 78cd32aada
commit 69bed46a9b
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,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|\.c)$' \
} | grep -E '(^CMake|/CMake|\.cmake$|\.cmake\.in$)' | grep -v -E '(\.h\.cmake|\.c)$' \
| xargs \
cmake-lint \
--suppress-decorations \

View File

@@ -1,7 +1,8 @@
# Copyright (C) The libssh2 project and its contributors.
# SPDX-License-Identifier: BSD-3-Clause
option(LIBSSH2_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies. Default: @LIBSSH2_USE_PKGCONFIG@" "@LIBSSH2_USE_PKGCONFIG@")
option(LIBSSH2_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies. Default: @LIBSSH2_USE_PKGCONFIG@"
"@LIBSSH2_USE_PKGCONFIG@")
include(CMakeFindDependencyMacro)