From bf7f705de282a3932f58b08eaffffaf81de4c50e Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Tue, 9 Jun 2026 19:25:29 +0100 Subject: [PATCH] build(telemetry): add src/ include path for ValidationTracker test The telemetry test module compiles ValidationTracker.cpp (from src/xrpld/) into xrpl_tests and includes . The single-binary test scheme dropped the src/ include directory that the old per-module target carried, breaking the build. Restore it on the telemetry branch of the test CMakeLists. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/tests/libxrpl/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/libxrpl/CMakeLists.txt b/src/tests/libxrpl/CMakeLists.txt index 3ede93d953..7affe4314e 100644 --- a/src/tests/libxrpl/CMakeLists.txt +++ b/src/tests/libxrpl/CMakeLists.txt @@ -62,7 +62,9 @@ if(telemetry) PRIVATE opentelemetry-cpp::opentelemetry-cpp ) # ValidationTracker lives in src/xrpld/ (not libxrpl), so we compile its - # implementation directly into the test binary. + # implementation directly into the test binary and put src/ on the include + # path so its tests can reach headers. + target_include_directories(xrpl_tests PRIVATE ${CMAKE_SOURCE_DIR}/src) target_sources( xrpl_tests PRIVATE