Skip to content
Snippets Groups Projects
Verified Commit e59ec850 authored by Lars Bilke's avatar Lars Bilke
Browse files

Boost is installed only when --mfront option is given.

parent ab7a443b
No related branches found
No related tags found
No related merge requests found
...@@ -329,20 +329,19 @@ if local_args.ogs != "clean": ...@@ -329,20 +329,19 @@ if local_args.ogs != "clean":
cmake_version = versions["tested_version"]["cmake"] cmake_version = versions["tested_version"]["cmake"]
Stage0 += cmake(eula=True, version=cmake_version) Stage0 += cmake(eula=True, version=cmake_version)
if local_args.pm == "system": if local_args.pm == "system":
boost_bootsrap_opts = []
if local_args.mfront: if local_args.mfront:
# for mfront python bindings # for mfront python bindings
boost_bootsrap_opts = ["--with-python=python3"] boost_bootsrap_opts = ["--with-python=python3"]
if toolchain.CC == "clang": if toolchain.CC == "clang":
boost_bootsrap_opts.append("--with-toolset=clang") boost_bootsrap_opts.append("--with-toolset=clang")
Stage0 += boost( Stage0 += boost(
b2_opts=["headers"], b2_opts=["headers"],
bootstrap_opts=boost_bootsrap_opts, bootstrap_opts=boost_bootsrap_opts,
ldconfig=True, ldconfig=True,
sourceforge=local_args.boost_sourceforge, sourceforge=local_args.boost_sourceforge,
version="1.75.0", # versions["minimum_version"]["boost"], # is too old for gcc 11 version="1.75.0", # versions["minimum_version"]["boost"], # is too old for gcc 11
) )
Stage0 += environment(variables={"BOOST_ROOT": "/usr/local/boost"}) Stage0 += environment(variables={"BOOST_ROOT": "/usr/local/boost"})
Stage0 += packages( Stage0 += packages(
apt=["libxml2-dev", "xsltproc"], yum=["libxml2-devel", "libxslt"] apt=["libxml2-dev", "xsltproc"], yum=["libxml2-devel", "libxslt"]
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment