Allow use of non-vendored Zenoh if present#908
Conversation
Signed-off-by: Øystein Sture <os@skarvtech.com>
|
Pulls: #908 |
JEnoch
left a comment
There was a problem hiding this comment.
I believe using non-vendored Zenoh is useful but should be an option, and possibly not the default behaviour. Imagine a host where a version of zenoh-c is installed for non-ROS applications, but rmw_zenoh requires another version. How to deal with that ?
The commit ids which are set in zenoh_cpp_vendor/CMakeLists.txt are the ones that maintainers ensure rmw_zenoh will work as expected. I think using another version should be made on purpose with an explicit flag.
And it might be useful to log (info or warning) whenever another zenoh-c or zenoh-cpp version than the vendor one is used.
Signed-off-by: Øystein Sture <os@skarvtech.com>
That seems reasonable, I've updated the PR. I decided to make it fail if USE_SYSTEM_ZENOH is set and it does not find the system installation instead of falling back on the vendored libraries. |
JEnoch
left a comment
There was a problem hiding this comment.
A last comment: could you please also add a note in the README (in "Source Installation") wrt. this new USE_SYSTEM_ZENOH flag.
Signed-off-by: Øystein Sture <os@skarvtech.com>
|
Pulls: #908 |
|
https://github.com/Mergifyio backport kilted jazzy humble |
✅ Backports have been createdDetails
|
Signed-off-by: Øystein Sture <os@skarvtech.com> (cherry picked from commit a8714a2)
Signed-off-by: Øystein Sture <os@skarvtech.com> (cherry picked from commit a8714a2)
Signed-off-by: Øystein Sture <os@skarvtech.com> (cherry picked from commit a8714a2)
Description
Uses zenoh-c and zenoh-cpp if found by cmake. It's easier to handle distributing and patching of Zenoh on non-standard platforms if the rust build can be handled externally.
Is this user-facing behavior change?
Should not affect any users, unless they are building from source and have installed the libraries to the cmake search path.
Did you use Generative AI?
No
Additional Information
There's also #695 but it seems to have stalled. Would appreciate if this could be considered in the meantime.