diff --git a/cmake/XrplCore.cmake b/cmake/XrplCore.cmake index fab45c2901..bbbb2d49ee 100644 --- a/cmake/XrplCore.cmake +++ b/cmake/XrplCore.cmake @@ -189,9 +189,6 @@ target_link_libraries( xrpl.libxrpl.conditions ) -add_module(xrpl tx) -target_link_libraries(xrpl.libxrpl.tx PUBLIC xrpl.libxrpl.ledger) - # Telemetry module — OpenTelemetry distributed tracing support. # Sources: include/xrpl/telemetry/ (headers), src/libxrpl/telemetry/ (impl). # When telemetry=ON, links the Conan-provided umbrella target @@ -209,6 +206,12 @@ if(telemetry) ) endif() +add_module(xrpl tx) +target_link_libraries( + xrpl.libxrpl.tx + PUBLIC xrpl.libxrpl.ledger xrpl.libxrpl.telemetry +) + add_library(xrpl.libxrpl) set_target_properties(xrpl.libxrpl PROPERTIES OUTPUT_NAME xrpl)