From 302bf928020bcbb4114ec38c68fde2434925ac02 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Fri, 27 Jun 2025 13:01:56 +0700 Subject: [PATCH] fix: workaround soci's overly zealous boost --- cmake/conan/Boost.cmake | 2 +- conanfile.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/conan/Boost.cmake b/cmake/conan/Boost.cmake index 0dde4e21f..fe5412cf1 100644 --- a/cmake/conan/Boost.cmake +++ b/cmake/conan/Boost.cmake @@ -24,7 +24,7 @@ endif() target_link_libraries(ripple_boost INTERFACE - Boost::headers + Boost::boost Boost::chrono Boost::container Boost::coroutine diff --git a/conanfile.py b/conanfile.py index 16469af8d..72f177957 100644 --- a/conanfile.py +++ b/conanfile.py @@ -83,7 +83,11 @@ class Xrpl(ConanFile): 'snappy/*:shared': False, 'soci/*:shared': False, 'soci/*:with_sqlite3': True, - 'soci/*:with_boost': True, + # TODO: this is workaround for soci's overly zealous boost dependency which will + # cause the build to link against ALL the boost libraries, which is not what we want. + # Components depending on soci, already have a dependency on boost, so we can skip this. + # When conan 2 is used, the updated soci recipe is already only linking against the boost::headers. + 'soci/*:with_boost': False, 'xxhash/*:shared': False, }