e351f0296c426b9337d3837291c659415e1cbdce
[AGL/meta-agl-demo.git] / recipes-connectivity / kuksa-val / kuksa-val / 0001-Make-Boost-requirements-more-liberal.patch
1 From 6c1495df3c78a2e7d86ec141950f342835c0b8c7 Mon Sep 17 00:00:00 2001
2 From: Scott Murray <scott.murray@konsulko.com>
3 Date: Mon, 23 May 2022 14:59:33 -0400
4 Subject: [PATCH 1/4] Make Boost requirements more liberal
5
6 To allow building with Yocto Project 3.1/dunfell or newer releases,
7 tweak the version requirement in boost.cmake to 1.72.0 and remove the
8 EXACT specifier from the find_package call.
9
10 Upstream-Status: Pending
11
12 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
13 ---
14  boost.cmake | 4 ++--
15  1 file changed, 2 insertions(+), 2 deletions(-)
16
17 diff --git a/boost.cmake b/boost.cmake
18 index 9f0e512..2dff60a 100644
19 --- a/boost.cmake
20 +++ b/boost.cmake
21 @@ -11,14 +11,14 @@
22  # *****************************************************************************
23  
24  set(Boost_USE_STATIC_LIBS OFF)
25 -set(BOOST_VER 1.75.0)
26 +set(BOOST_VER 1.72.0)
27  set(Boost_NO_BOOST_CMAKE ON)
28  set(BOOST_COMPONENTS filesystem program_options system log thread)
29  ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
30  
31  # Workaround function to allow cmake call `find_package` twice. Avoide side effects from local variables, which are produced be `find_package`
32  function(findBoost Required)
33 -    find_package(Boost ${BOOST_VER} EXACT ${Required} 
34 +    find_package(Boost ${BOOST_VER} ${Required}
35          COMPONENTS ${BOOST_COMPONENTS}
36          OPTIONAL_COMPONENTS unit_test_framework
37      )
38 -- 
39 2.35.1
40