Skip to content

Commit ddd2369

Browse files
committed
DPL: add component for Arrow Acero Streaming Engine
1 parent b733857 commit ddd2369

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

dependencies/O2Dependencies.cmake

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,33 @@ if(NOT TARGET ArrowDataset::arrow_dataset_shared)
6565
)
6666
endif()
6767

68+
if(NOT TARGET ArrowAcero::arrow_acero_shared)
69+
# ArrowAcero::arrow_acero_shared is linked for no reason to parquet
70+
# so we cannot use it because we do not want to build parquet itself.
71+
# For that reason at the moment we need to do the lookup by hand.
72+
get_target_property(ARROW_SHARED_LOCATION Arrow::arrow_shared LOCATION)
73+
get_filename_component(ARROW_SHARED_DIR ${ARROW_SHARED_LOCATION} DIRECTORY)
74+
75+
find_library(ARROW_ACERO_SHARED arrow_acero
76+
PATHS ${ARROW_SHARED_DIR}
77+
NO_DEFAULT_PATH
78+
)
79+
80+
if(ARROW_ACERO_SHARED)
81+
message(STATUS
82+
"Found arrow_acero_shared library at: ${ARROW_ACERO_SHARED}")
83+
else()
84+
message(FATAL_ERROR
85+
"arrow_acero_shared library not found in ${ARROW_SHARED_DIR}")
86+
endif()
87+
88+
# Step 3: Create a target for ArrowAcero::arrow_acero_shared
89+
add_library(ArrowAcero::arrow_acero_shared SHARED IMPORTED)
90+
set_target_properties(ArrowAcero::arrow_acero_shared PROPERTIES
91+
IMPORTED_LOCATION ${ARROW_ACERO_SHARED}
92+
)
93+
endif()
94+
6895
if (NOT TARGET Gandiva::gandiva_shared)
6996
add_library(Gandiva::gandiva_shared ALIAS gandiva_shared)
7097
endif()

0 commit comments

Comments
 (0)