Upgrade KUKSA.val components to 0.4.0 releases
[AGL/meta-agl-demo.git] / recipes-connectivity / kuksa-val / kuksa-val / 0001-Make-Boost-requirements-more-liberal.patch
1 From 69a64b4426fdeff1c1e098941496deda5ad3ea31 Mon Sep 17 00:00:00 2001
2 From: Scott Murray <scott.murray@konsulko.com>
3 Date: Thu, 6 Oct 2022 11:56:38 -0400
4 Subject: [PATCH 1/5] Make Boost requirements more liberal
5
6 To allow building with Yocto Project 4.0/kirkstone, remove the EXACT
7 specifier from the Boost find_package call and restore the lower
8 Boost version originally specified before upstream commit 7ea6026d
9 raised it due to issues with the in-tree build.
10
11 Upstream-Status: Pending
12
13 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
14 ---
15  kuksa-val-server/boost.cmake | 4 ++--
16  1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/kuksa-val-server/boost.cmake b/kuksa-val-server/boost.cmake
19 index 7358976..0da54df 100644
20 --- a/kuksa-val-server/boost.cmake
21 +++ b/kuksa-val-server/boost.cmake
22 @@ -19,14 +19,14 @@
23  # 4. Change version in main README.md file for KUKSA.val Server
24  
25  set(Boost_USE_STATIC_LIBS OFF)
26 -set(BOOST_VER 1.82.0)
27 +set(BOOST_VER 1.75.0)
28  set(Boost_NO_BOOST_CMAKE ON)
29  set(BOOST_COMPONENTS filesystem program_options system log thread)
30  ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)
31  
32  # Workaround function to allow cmake call `find_package` twice. Avoide side effects from local variables, which are produced be `find_package`
33  function(findBoost Required)
34 -    find_package(Boost ${BOOST_VER} EXACT ${Required} 
35 +    find_package(Boost ${BOOST_VER} ${Required}
36          COMPONENTS ${BOOST_COMPONENTS}
37          OPTIONAL_COMPONENTS unit_test_framework
38      )
39 -- 
40 2.41.0
41