Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Commit d33fb4e

Browse files
Khalil Estellkammce
authored andcommitted
⬆️ Use boost/1.81.0 vs boost-leaf
Use boost library directly just to get boost-leaf. This does work and doesn't require all of the additional requirements to be built.
1 parent 9d3a84f commit d33fb4e

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ libhal_unit_test(SOURCES
4747
tests/main.test.cpp
4848

4949
PACKAGES
50-
boost-leaf
50+
Boost
5151
tl-function-ref
5252

5353
LINK_LIBRARIES
54-
boost::leaf
54+
Boost::headers
5555
tl::function-ref)

conanfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def build_requirements(self):
6565

6666
def requirements(self):
6767
self.requires("tl-function-ref/1.0.0")
68-
self.requires("boost-leaf/1.81.0")
68+
self.requires("boost/1.83.0", transitive_headers=True,
69+
options={
70+
"header_only": True,
71+
})
6972

7073
def layout(self):
7174
cmake_layout(self)

include/libhal/error.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
#pragma once
1616

17-
#include <boost/leaf.hpp>
1817
#include <system_error>
1918

19+
#include <boost/leaf/detail/all.hpp>
20+
2021
#define HAL_CHECK BOOST_LEAF_CHECK
2122

2223
namespace hal {

0 commit comments

Comments
 (0)