File tree 2 files changed +41
-1
lines changed
2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,21 @@ install_headers(
371
371
)
372
372
373
373
if needs_tests
374
- filesystem_dep = dependency (' boost' , modules : [' filesystem' ])
374
+ filesystem_dep = dependency (
375
+ ' boost' ,
376
+ modules : [' filesystem' ],
377
+ required : false ,
378
+ )
379
+ if not filesystem_dep.found()
380
+ cmake = import (' cmake' )
381
+ boost_opt = cmake.subproject_options()
382
+ boost_opt.add_cmake_defines(
383
+ {' BOOST_INCLUDE_LIBRARIES' : ' filesystem;system' },
384
+ )
385
+ boost_proj = cmake.subproject (' boost' , options : boost_opt)
386
+ filesystem_dep = boost_proj.dependency (' boost_filesystem' )
387
+ endif
388
+
375
389
gtest_main_dep = dependency (' gtest_main' )
376
390
gmock_dep = dependency (' gmock' )
377
391
else
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments