Repository navigation
Fix cv_bridge CMake CMP0167 compatibility - #571
Quchaosheng wants to merge 1 commit into
Conversation
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
@Mergifyio queue |
☑️ Command disallowed due to command restrictions in the Mergify configuration.Details
|
|
@Mergifyio queue |
☑️ Command disallowed due to command restrictions in the Mergify configuration.Details
|
|
A gentle first ping on this one: 2/2 checks pass, the branch is unchanged since 09-11, and no human reviewer has looked at it yet. There is also a queue command on the PR that Mergify rejects due to its command restrictions, so that route cannot merge it. If the change needs a different approach, or if this is not wanted in rolling, say so and I will drop it. |
|
I ran into the same issue you solved here. It looks like there is also a prior PR that attempted to address and fix this issue: #568. |
|
Thanks for pointing at #568. I diffed the two and it sets CMP0167 to NEW in the same place mine does, so functionally they are the same change, mine just carries a comment explaining why. Since #568 was first and is already approved, I am happy to be superseded by it. If you would rather take that one, say so and I will close this. No need to hold two PRs for the same fix, I just want the warning gone from rolling. |
|
Closing this as superseded by #568. I diffed the two again: both set the same guarded Thanks @jmackay2 for the pointer. If #568 ends up not being merged and the warning still needs fixing, I am happy to reopen this or send a fresh version. |
Summary
Fix the CMake 3.30+ CMP0167 warning in
cv_bridgewhile preserving compatibility with older ROS 2 distributions.Background
CMake 3.30 removed the legacy
FindBoostmodule and introduced policyCMP0167. The existingfind_package(Boost ...)calls incv_bridge/CMakeLists.txttherefore emit a developer warning, and newer environments may fail when the legacy module is unavailable.Changes
CMP0167exists.CMP0167toNEWwhen supported, selecting Boost's config-package discovery.Compatibility
The minimum required CMake version remains 3.14. On older CMake versions, the policy guard is skipped and the existing discovery behavior is preserved.
Validation
git diff --checkpasses.Closes #567