aedi: simplify condition in target filter for cmake modules
This commit is contained in:
parent
92bb063a74
commit
508f50fbdd
|
@ -469,11 +469,8 @@ class CMakeStaticDependencyTarget(CMakeTarget):
|
||||||
for regex in import_regexes:
|
for regex in import_regexes:
|
||||||
match = regex.match(line)
|
match = regex.match(line)
|
||||||
|
|
||||||
if not match:
|
if match and match.group('target') != target:
|
||||||
continue
|
return None
|
||||||
else:
|
|
||||||
if match.group('target') != target:
|
|
||||||
return None
|
|
||||||
|
|
||||||
return line
|
return line
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue