Skip to content

Commit db053d1

Browse files
committed
GenericFindDependency.cmake: Add cmake-lint pragma
There is a bug in cmake-lint, and this pragma allows the rule to be ignored for this file only.
1 parent ff4ddcf commit db053d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GenericFindDependency.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ function(search_dependency_source)
121121
# (unless PARENT_SCOPE is used in set()) so by unsetting variables here we
122122
# won't affect whatever function called us, or anything even higher up
123123
# the call stack.
124+
125+
# See https://github.com/cheshirekow/cmake_format/pull/257
126+
# cmake-lint: disable=E1120
124127
foreach(i RANGE 0 100)
125128
unset(ARGV${i})
126129
endforeach()

0 commit comments

Comments
 (0)