diff options
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake/0004-FindBoost-Generate-imported-targets-for-future-Boost.patch')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake/0004-FindBoost-Generate-imported-targets-for-future-Boost.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake/0004-FindBoost-Generate-imported-targets-for-future-Boost.patch b/meta/recipes-devtools/cmake/cmake/0004-FindBoost-Generate-imported-targets-for-future-Boost.patch new file mode 100644 index 0000000000..bec04c4c14 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake/0004-FindBoost-Generate-imported-targets-for-future-Boost.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 6297d6c7fd6f80dafe17c0aefeeb0439432aa4b0 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Paul \"TBBle\" Hampson" <Paul.Hampson@Pobox.com> | ||
3 | Date: Sat, 30 Dec 2017 16:00:29 +1100 | ||
4 | Subject: [PATCH 4/6] FindBoost: Generate imported targets for future Boost | ||
5 | versions | ||
6 | |||
7 | Per discussion on cmake/cmake#17575, this protection not particularly | ||
8 | valuable, as the dependency information which the imported targets wrap | ||
9 | is generated anyway. | ||
10 | |||
11 | This removes a road-block for using `Boost_ADDITIONAL_VERSIONS` to | ||
12 | support newly-released Boost versions pending a new CMake release. | ||
13 | |||
14 | Affects cmake < 3.11.0 | ||
15 | |||
16 | Upsteam-Status: Backport | ||
17 | [Yocto 12762] | ||
18 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
19 | |||
20 | --- | ||
21 | Modules/FindBoost.cmake | 1 - | ||
22 | 1 file changed, 1 deletion(-) | ||
23 | |||
24 | Index: cmake-3.10.3/Modules/FindBoost.cmake | ||
25 | =================================================================== | ||
26 | --- cmake-3.10.3.orig/Modules/FindBoost.cmake | ||
27 | +++ cmake-3.10.3/Modules/FindBoost.cmake | ||
28 | @@ -799,7 +799,6 @@ function(_Boost_COMPONENT_DEPENDENCIES c | ||
29 | endif() | ||
30 | if(NOT Boost_VERSION VERSION_LESS 106700) | ||
31 | message(WARNING "New Boost version may have incorrect or missing dependencies and imported targets") | ||
32 | - set(_Boost_IMPORTED_TARGETS FALSE) | ||
33 | endif() | ||
34 | endif() | ||
35 | |||