Fix minimal build, allow building without boost::serialization (#6932)

* make sure that we can build without boost iostreams or seralization

adds some "private" variables on the python side to check for these compilation flags

* get out minimal cmake version correct

* get minimallib js building

installs an up-to-date cmake
also updates the version of boost being used for the minimallib
adds extra argument to allow the repo to be specified
This commit is contained in:
Greg Landrum
2023-11-23 05:57:05 +01:00
committed by GitHub
parent a2ecd6723c
commit 8892fb160a
15 changed files with 62 additions and 28 deletions

View File

@@ -565,6 +565,7 @@ bool SubstructLibrary::hasMatch(const ExtendedQueryMol &query,
void SubstructLibrary::toStream(std::ostream &ss) const {
#ifndef RDK_USE_BOOST_SERIALIZATION
RDUNUSED_PARAM(ss);
PRECONDITION(0, "Boost SERIALIZATION is not enabled")
#else
boost::archive::text_oarchive ar(ss);
@@ -580,6 +581,7 @@ std::string SubstructLibrary::Serialize() const {
void SubstructLibrary::initFromStream(std::istream &ss) {
#ifndef RDK_USE_BOOST_SERIALIZATION
RDUNUSED_PARAM(ss);
PRECONDITION(0, "Boost SERIALIZATION is not enabled")
#else
boost::archive::text_iarchive ar(ss);