Skip to content

fix(build): ensure opencv-contrib modules path is set correctly#426

Merged
rainyl merged 2 commits intomainfrom
fix-cmake-opencv-contrib-cache
Feb 18, 2026
Merged

fix(build): ensure opencv-contrib modules path is set correctly#426
rainyl merged 2 commits intomainfrom
fix-cmake-opencv-contrib-cache

Conversation

@rainyl
Copy link
Owner

@rainyl rainyl commented Feb 18, 2026

fixes: #423

When building OpenCV from source with contrib modules, the OPENCV_EXTRA_MODULES_PATH variable was not being forced, causing builds to ignore changes to the included modules list. This adds the FORCE flag to the cache setting, ensuring the correct modules are built when the configuration changes.

When building OpenCV from source with contrib modules, the OPENCV_EXTRA_MODULES_PATH variable was not being forced, causing builds to ignore changes to the included modules list. This adds the FORCE flag to the cache setting, ensuring the correct modules are built when the configuration changes.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.76%. Comparing base (4d0cda0) to head (78a0331).
⚠️ Report is 1 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #426   +/-   ##
=======================================
  Coverage   92.76%   92.76%           
=======================================
  Files          56       56           
  Lines       11442    11442           
=======================================
  Hits        10614    10614           
  Misses        828      828           
Flag Coverage Δ
unittests 92.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rainyl rainyl merged commit 3e93e5b into main Feb 18, 2026
8 checks passed
@rainyl rainyl deleted the fix-cmake-opencv-contrib-cache branch February 18, 2026 05:10
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.

error C1083: Cannot open include file: 'opencv2/img_hash.hpp': No such file or directory

2 participants