boost version 1.86 support
Based on Boost 1.86 documentation
https://www.boost.org/users/history/version_1_86_0.html
Process:
Turned v2 into a compile library.
Conditionally included the Boost Process library for versions >= 1.86
to fix the following linker errors:
```
undefined reference to `boost::process::v2::error::get_utf8_category()
undefined reference to `boost::process::v2::error::get_collect2()
```
Tested: verified build
Change-Id: I4f503722e81f7fb0a0c00271cbe2f1845255a3df
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/meson.build b/meson.build
index cc08869..18aa27b 100644
--- a/meson.build
+++ b/meson.build
@@ -279,6 +279,18 @@
required: false,
include_type: 'system',
)
+
+# Boost version is 1.86 or higher to include the 'process' module
+if boost.version().version_compare('>=1.86.0')
+ boost = dependency(
+ 'boost',
+ modules: ['url', 'process'],
+ version: '>=1.86.0',
+ required: false,
+ include_type: 'system',
+ )
+endif
+
if boost.found()
bmcweb_dependencies += [boost]
bmcweb_cli_dependencies += [boost]