diff --git a/cmake/XrplCore.cmake b/cmake/XrplCore.cmake index 5703929bff..2f6ddeed00 100644 --- a/cmake/XrplCore.cmake +++ b/cmake/XrplCore.cmake @@ -196,9 +196,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 @@ -216,6 +213,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)