arrow: explicitly disable RE2 and UTF8PROC flags when not in dependencies (#35353)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
This commit is contained in:
Erik Heeren 2023-08-25 09:04:06 +02:00 committed by GitHub
parent 52ccee79d8
commit 60ecd0374e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,6 +148,11 @@ def cmake_args(self):
args.append(self.define_from_variant("ARROW_WITH_ZLIB", "zlib")) args.append(self.define_from_variant("ARROW_WITH_ZLIB", "zlib"))
args.append(self.define_from_variant("ARROW_WITH_ZSTD", "zstd")) args.append(self.define_from_variant("ARROW_WITH_ZSTD", "zstd"))
if not self.spec.dependencies("re2"):
args.append(self.define("ARROW_WITH_RE2", False))
if not self.spec.dependencies("utf8proc"):
args.append(self.define("ARROW_WITH_UTF8PROC", False))
if self.spec.satisfies("@:8"): if self.spec.satisfies("@:8"):
args.extend( args.extend(
[ [