@@ -371,25 +371,38 @@ install_headers(
371
371
)
372
372
373
373
if needs_tests
374
- filesystem_dep = dependency (
374
+ boost_dep = dependency (
375
375
' boost' ,
376
376
modules : [' filesystem' ],
377
377
required : false ,
378
+ include_type : ' system' ,
378
379
)
379
- if not filesystem_dep.found()
380
+
381
+ if boost_dep.found()
382
+ boost_deps = [boost_dep]
383
+ else
380
384
cmake = import (' cmake' )
381
385
boost_opt = cmake.subproject_options()
382
386
boost_opt.add_cmake_defines(
383
- {' BOOST_INCLUDE_LIBRARIES' : ' filesystem;system ' },
387
+ {' BOOST_INCLUDE_LIBRARIES' : ' asio; filesystem;process ' },
384
388
)
385
389
boost_proj = cmake.subproject (' boost' , options : boost_opt)
386
- filesystem_dep = boost_proj.dependency (' boost_filesystem' )
390
+ asio_dep = boost_proj.dependency (' boost_asio' , include_type : ' system' )
391
+ filesystem_dep = boost_proj.dependency (
392
+ ' boost_filesystem' ,
393
+ include_type : ' system' ,
394
+ )
395
+ process_dep = boost_proj.dependency (
396
+ ' boost_process' ,
397
+ include_type : ' system' ,
398
+ )
399
+ boost_deps = [asio_dep, filesystem_dep, process_dep]
387
400
endif
388
401
389
402
gtest_main_dep = dependency (' gtest_main' )
390
403
gmock_dep = dependency (' gmock' )
391
404
else
392
- filesystem_dep = disabler ()
405
+ boost_deps = disabler ()
393
406
gtest_main_dep = disabler ()
394
407
gmock_dep = disabler ()
395
408
endif
@@ -399,13 +412,13 @@ arrow_test_lib = static_library(
399
412
sources : arrow_testing_srcs,
400
413
include_directories : [include_dir],
401
414
link_with : [arrow_lib],
402
- dependencies : [filesystem_dep , gtest_main_dep],
415
+ dependencies : [boost_deps , gtest_main_dep],
403
416
)
404
417
405
418
arrow_test_dep = declare_dependency (
406
419
link_with : [arrow_lib, arrow_test_lib],
407
420
include_directories : [include_dir],
408
- dependencies : [filesystem_dep , gmock_dep, gtest_main_dep],
421
+ dependencies : [boost_deps , gmock_dep, gtest_main_dep],
409
422
)
410
423
411
424
array_array_test = executable (
0 commit comments