pcre2: fix libs property (#18525)

This commit is contained in:
Adam J. Stewart 2020-09-09 03:11:29 -05:00 committed by GitHub
parent d24532f574
commit 4307b73299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,9 @@ def configure_args(self):
@property @property
def libs(self): def libs(self):
libs = find_libraries('libpcre2*', if '+multibyte' in self.spec:
root=self.prefix.lib, name = 'libpcre2-32'
recursive=False) else:
return libs name = 'libpcre2-8'
return find_libraries(name, root=self.prefix, recursive=True)