Skip to content

Propagate SOD linkage through lightnvr_lib - #927

Merged
matteius merged 3 commits into
mainfrom
ai-findings-autofix/CMakeLists.txt
Nov 7, 2026
Merged

matteius merged 3 commits into
mainfrom
ai-findings-autofix/CMakeLists.txt

Conversation

@matteius

@matteius matteius commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

SOD symbols are referenced by objects in the static lightnvr_lib, but its link interface did not declare SOD. Consumers therefore needed their own direct SOD linkage to avoid unresolved symbols when ENABLE_SOD=ON.

Publish sod through lightnvr_lib and remove the redundant direct linkage from the main executable and the Layer 2/3 unit-test helpers. Existing detection tests now exercise the inherited dependency. The change remains conditional on ENABLE_SOD.

Merged current main, including the batch-delete cancellation fix responsible for the previous browser-contract failure.

Validation:

  • Configured with ENABLE_SOD=ON; built lightnvr, test_detection_model_motion, and test_detection_system_onvif.
  • Both detection tests passed with SOD inherited through lightnvr_lib.
  • Configured with ENABLE_SOD=OFF; verified the generated detection-test link command has no SOD dependency.
  • git diff --check passed.

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@matteius matteius changed the title Potential fix for 1 code quality finding Propagate SOD linkage through lightnvr_lib Nov 7, 2026
@matteius
matteius marked this pull request as ready for review November 7, 2026 22:54
@matteius
matteius merged commit a04f27f into main Nov 7, 2026
12 of 19 checks passed
@matteius
matteius deleted the ai-findings-autofix/CMakeLists.txt branch November 7, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant