pcre2: Fix spec reference without self

Fixes bug introduced in #46788
This commit is contained in:
Chris Marsh 2024-10-10 09:45:51 -06:00 committed by GitHub
parent a332e0c143
commit 8fae388f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,7 @@ def cmake_args(self):
# by default, this is in parity with the autotools build, so on
# linux and MacOS, the produced binaries are identical, Windows is the
# only outlier
if spec.satisfies("platform=windows"):
if self.spec.satisfies("platform=windows"):
args.append(self.define_from_variant("BUILD_SHARED_LIBS", "shared"))
# PCRE allows building shared and static at the same time
# this is bad practice and a problem on some platforms