Skip to content

Commit

Permalink
require re2 only from enabled components
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz committed Jan 23, 2023
1 parent 09135e1 commit ba1fc7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/arrow/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,11 @@ def package_info(self):
if self.options.with_mimalloc:
self.cpp_info.components["libarrow"].requires.append("mimalloc::mimalloc")
if self._with_re2():
for comp in ["libgandiva", "libparquet", "libarrow"]:
self.cpp_info.components[comp].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():
Expand Down

0 comments on commit ba1fc7a

Please sign in to comment.