File rdkit-boost_system.patch of Package rdkit
github.com/rdkit/rdkit/pull/8694
(patch to rdkit-config.cmake.in dropped as not applicable here)
From efe02a65b2f3ab1808c5bf21733ddc4bc9842c47 Mon Sep 17 00:00:00 2001
From: Michael Cho <michael@michaelcho.dev>
Date: Thu, 14 Aug 2025 01:13:34 -0400
Subject: [PATCH] Fix build with Boost 1.89.0 (#8694)
---
CMakeLists.txt | 4 ++--
Docs/Book/C++Examples/CMakeLists.txt | 2 +-
rdkit-config.cmake.in | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3984569706..eff58f197da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -437,7 +437,7 @@ else()
endif()
if(RDK_USE_BOOST_SERIALIZATION)
- find_package(Boost ${RDK_BOOST_VERSION} COMPONENTS system serialization iostreams REQUIRED CONFIG)
+ find_package(Boost ${RDK_BOOST_VERSION} COMPONENTS serialization iostreams REQUIRED CONFIG)
target_link_libraries(rdkit_base INTERFACE ${Boost_LIBRARIES})
target_compile_definitions(rdkit_base INTERFACE -DRDK_USE_BOOST_SERIALIZATION)
if(NOT Boost_USE_STATIC_LIBS)
@@ -447,7 +447,7 @@ endif()
if(RDK_USE_BOOST_IOSTREAMS)
target_compile_definitions(rdkit_base INTERFACE -DRDK_USE_BOOST_IOSTREAMS)
- find_package(Boost ${RDK_BOOST_VERSION} COMPONENTS system iostreams REQUIRED CONFIG)
+ find_package(Boost ${RDK_BOOST_VERSION} COMPONENTS iostreams REQUIRED CONFIG)
target_link_libraries(rdkit_base INTERFACE ${Boost_LIBRARIES})
if (NOT Boost_USE_STATIC_LIBS)
diff --git a/Docs/Book/C++Examples/CMakeLists.txt b/Docs/Book/C++Examples/CMakeLists.txt
index cab3678ff4d..d5b67129ab0 100644
--- a/Docs/Book/C++Examples/CMakeLists.txt
+++ b/Docs/Book/C++Examples/CMakeLists.txt
@@ -13,7 +13,7 @@ add_compile_options(-Wall)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED OFF)
set(Boost_USE_STATIC_RUNTIME ON)
-find_package( Boost COMPONENTS iostreams filesystem system)
+find_package( Boost COMPONENTS iostreams filesystem)
find_package( Cairo REQUIRED )
# specify where CMake can find the RDKit libraries
diff --git a/rdkit-config.cmake.in b/rdkit-config.cmake.in
index b494bf95634..ad0a3fe2833 100644