fix(cmake): export external flatcc runtime dependencies #963
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 278 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.45 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.337
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
2 items
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 78.24%. Comparing base (
ea215b0) to head (b84a944).<details><summary>Additional details and impacted files</summary>
@@ Coverage Diff @@
## main #963 +/- ##
=======================================
Coverage 78.24% 78.24%
=======================================
Files 106 106
Lines 16867 16867
Branches 1993 1993
=======================================
Hits 13198 13198
Misses 2437 2437
Partials 1232 1232
</details>
:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
bmehta001
Problem
With
NANOARROW_IPC=ONand an external flatcc runtime, the exported static IPC target contains$<LINK_ONLY:flatccrt>, but the package does not define that target for its consumers. Standalone consumers therefore depend on incidental caller-defined targets or linker search paths. This affects build-tree exports as well as installed packages.The vcpkg port currently compensates on Windows by replacing this dependency with a Release-only library path; Unix consumers are left with the bare library name. A source-level fix lets package maintainers remove that workaround when updating nanoarrow.
Related to #922. This addresses exported dependency metadata, separately from #949's build-time static/shared runtime discovery.
Changes
nanoarrow::flatccrt, rather than an alias of an unqualified imported target. CMake resolves imported aliases back to the underlying name when exporting them.Validation
Windows (Visual Studio 2026 / MSVC 19.51) and Linux (WSL / GCC 13.3):
flatccrtdeclared both before and after package discovery.find_package(... QUIET).flatccrt-NOTFOUND, demonstrating that the test detects the original export defect.Regression entry point, from the repository root:
On Windows the local run explicitly selected
CMAKE_GENERATOR=Visual Studio 18 2026.CMake formatting (0.6.13), Black (22.3.0), Flake8 (7.1.1), isort (5.12.0), codespell, workflow YAML parsing, and
git diff --checkpassed. No runtime tests in these selections were skipped or excluded. Native macOS was not available locally; the added CI job covers it.AI assistance: GitHub Copilot assisted with implementation and regression coverage.