Skip to content

Commit b4c7991

Browse files
committed
GH-45772: [C++] Export Arrow as dependency from Meson configuration
1 parent 6b66c84 commit b4c7991

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

cpp/src/arrow/meson.build

+8-6
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ arrow_lib = library(
326326
install: true,
327327
)
328328

329+
arrow_dep = declare_dependency(
330+
include_directories: [include_dir],
331+
link_with: arrow_lib,
332+
)
333+
329334
# Meson does not allow you to glob for headers to install. See also
330335
# https://mesonbuild.com/FAQ.html#why-cant-i-specify-target-files-with-a-wildcard
331336
# install_subdir would be usable if the directory only contained headers
@@ -397,15 +402,12 @@ endif
397402
arrow_test_lib = static_library(
398403
'arrow_testing',
399404
sources: arrow_testing_srcs,
400-
include_directories: [include_dir],
401-
link_with: [arrow_lib],
402-
dependencies: [filesystem_dep, gtest_main_dep],
405+
dependencies: [arrow_dep, filesystem_dep, gtest_main_dep],
403406
)
404407

405408
arrow_test_dep = declare_dependency(
406-
link_with: [arrow_lib, arrow_test_lib],
407-
include_directories: [include_dir],
408-
dependencies: [filesystem_dep, gmock_dep, gtest_main_dep],
409+
link_with: [arrow_test_lib],
410+
dependencies: [arrow_dep, filesystem_dep, gmock_dep, gtest_main_dep],
409411
)
410412

411413
array_array_test = executable(

0 commit comments

Comments
 (0)