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, }