From 315ff8288d12d36b3f2e348771cf9346a0bf079d Mon Sep 17 00:00:00 2001 From: dvirtz Date: Sun, 5 Feb 2023 11:05:35 +0000 Subject: [PATCH] (#15420) arrow/10.0.0: link re2 to `libparquet` and `libarrow` * link re2 to `libparquet` and `libarrow` fixes #15413 * require re2 only from enabled components --- recipes/arrow/all/conanfile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes/arrow/all/conanfile.py b/recipes/arrow/all/conanfile.py index 8c2329c1504957..1def26f4a6ab86 100644 --- a/recipes/arrow/all/conanfile.py +++ b/recipes/arrow/all/conanfile.py @@ -637,7 +637,11 @@ def package_info(self): if self.options.with_mimalloc: self.cpp_info.components["libarrow"].requires.append("mimalloc::mimalloc") if self._with_re2(): - self.cpp_info.components["libgandiva"].requires.append("re2::re2") + if self.options.gandiva: + self.cpp_info.components["libgandiva"].requires.append("re2::re2") + if self._parquet(): + self.cpp_info.components["libparquet"].requires.append("re2::re2") + self.cpp_info.components["libarrow"].requires.append("re2::re2") if self._with_llvm(): self.cpp_info.components["libgandiva"].requires.append("llvm-core::llvm-core") if self._with_protobuf():