Skip to content

Commit 4b3c200

Browse files
committed
try custom detection
1 parent fcfc545 commit 4b3c200

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

cpp/src/arrow/meson.build

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,19 @@ if needs_json
411411
endif
412412

413413
if needs_orc
414-
orc_dep = dependency('orc')
414+
orc_headers = ['orc/orc_config.hh']
415+
orc_lib = cpp_compiler.find_library(
416+
'orc',
417+
has_headers: orc_headers,
418+
required: false,
419+
)
420+
421+
if orc_lib.found()
422+
orc_dep = declare_dependency(link_with: orc_lib)
423+
else
424+
orc_dep = dependency('orc')
425+
endif
426+
415427
arrow_components += {
416428
'arrow_orc': {
417429
'sources': files(

0 commit comments

Comments
 (0)