mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user