Skip to content

Support OpenCV 5 feature component - #315

Open
ethanmusser wants to merge 2 commits into
carnegierobotics:masterfrom
ethanmusser:ethanmusser/bug/support-opencv-5
Open

ethanmusser wants to merge 2 commits into
carnegierobotics:masterfrom
ethanmusser:ethanmusser/bug/support-opencv-5

Conversation

@ethanmusser

@ethanmusser ethanmusser commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Update CMake to deduce the correct OpenCV features component based on the detected OpenCV version. This makes the build compatible with OpenCV>=5.

Resolves most of the currently-failing macOS CI builds (the failure was due to the CI build sourcing a newer OpenCV version).

Note that this change also removes the fail-safe for the BUILD_OPENCV CMake option. Previously, if BUILD_OPENCV=ON but OpenCV was not found with all of the required components, the build would proceed and simply omit the OpenCV portions. With this change, that same scenario results in a configuration failure. Let me know if you preferred the old way, but IMO it could easily lead to build configurations that did not match what the user expected.

@ethanmusser ethanmusser self-assigned this Oct 1, 2026
@ethanmusser ethanmusser added the bug Something isn't working label Oct 1, 2026
@codecov

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ethanmusser
ethanmusser marked this pull request as ready for review October 1, 2026 19:09
@ethanmusser
ethanmusser enabled auto-merge (squash) October 5, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant