Skip to content

Commit ecced37

Browse files
spethischoegl
authored andcommitted
Update minimum Boost version to 1.83
1 parent 6a0d54e commit ecced37

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

SConstruct

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,16 +1351,15 @@ env['HAS_OPENMP'] = conf.CheckLibWithHeader(
13511351
["iomp5", "omp", "gomp"], "omp.h", language="C++"
13521352
)
13531353

1354+
boost_version_spec = SpecifierSet(">=1.83")
13541355
retcode, boost_lib_version = run_preprocessor(conf, ["<boost/version.hpp>"], "BOOST_LIB_VERSION")
13551356
if not retcode:
13561357
config_error("Boost could not be found. Install Boost headers or set "
13571358
"'boost_inc_dir' to point to the boost headers.")
13581359
else:
13591360
env['BOOST_LIB_VERSION'] = '.'.join(boost_lib_version.strip().replace('"', "").split('_'))
1360-
if parse_version(env['BOOST_LIB_VERSION']) < parse_version("1.70"):
1361-
# Boost.DLL with std::filesystem (making it header-only) is available in Boost 1.70
1362-
# or newer
1363-
config_error("Cantera requires Boost version 1.70 or newer.")
1361+
if env['BOOST_LIB_VERSION'] not in boost_version_spec:
1362+
config_error(f"Cantera requires Boost {boost_version_spec}.")
13641363
logger.info(f"Found Boost version {env['BOOST_LIB_VERSION']}")
13651364

13661365
# check BLAS/LAPACK installations

doc/sphinx/develop/compiling/dependencies.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ compiler is required only if you plan to build the Fortran module.
3939

4040
- [Boost](https://www.boost.org/releases/latest/)
4141

42-
- Known to work with versions 1.71, 1.74, and 1.82; Expected to work with versions >=
43-
1.70
42+
- Expected to work with Boost versions >= 1.83.
4443
- Only the "header-only" portions of Boost are required. Cantera does not currently
4544
depend on any of the compiled Boost libraries.
4645

0 commit comments

Comments
 (0)