cmake: require just 2 boost component by default program_options, regex

Tested locally that build succeeds with all other components being
header-only or unused by now.

`regex` is only needed for Boost <1.76, see
https://www.boost.org/releases/1.76.0/
This commit is contained in:
Andrej730
2026-09-15 18:05:32 +05:00
parent 776eea17da
commit 3c1f44a42c
8 changed files with 11 additions and 27 deletions
-4
View File
@@ -1519,13 +1519,9 @@ if "boost" in targets:
mode="bjam",
build_tool_args=[
f"--stagedir={Dependencies.get_install_dir('boost')}",
"--with-system",
"--with-program_options",
"--with-regex",
"--with-thread",
"--with-date_time",
"--with-iostreams",
"--with-filesystem",
# By default boost will keep ICU enabled, if it manages to find dev ICU dev package on the system.
# Which then creates issues when during our executables packaging.
# E.g. it ends up linking system's `libicudata.so.67`, so then we need to somehow detect and bundle