Skip to content

Commit 3ea91f2

Browse files
committed
Try wrapping Boost CMake
1 parent c438216 commit 3ea91f2

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

cpp/src/arrow/meson.build

+6-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,12 @@ install_headers(
371371
)
372372

373373
if needs_tests
374-
filesystem_dep = dependency('boost', modules: ['filesystem'])
374+
cmake = import('cmake')
375+
boost_opt = cmake.subproject_options()
376+
boost_opt.add_cmake_defines({'BOOST_INCLUDE_LIBRARIES': 'filesystem;system'})
377+
boost_proj = cmake.subproject('boost', options: boost_opt)
378+
filesystem_dep = boost_proj.dependency('boost_filesystem')
379+
375380
gtest_main_dep = dependency('gtest_main')
376381
gmock_dep = dependency('gmock')
377382
else

cpp/subprojects/boost.wrap

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
[wrap-git]
19+
url=https://github.com/boostorg/boost
20+
revision=boost-1.83.0
21+
method=cmake
22+
clone-recursive=true
23+
24+
[provide]
25+
boost_filesystem = boost_filesystem_dep
26+
boost_system = boost_system_dep

0 commit comments

Comments
 (0)