Add configurable mavlink repo URL and Hash#2706
Conversation
julianoes
left a comment
There was a problem hiding this comment.
I'm ok with this. I think I suggested that once in the past actually.
Note that with v4, MavlinkPassthrough will be off by default, but there will be a configure option to bring it back.
JonasVautherin
left a comment
There was a problem hiding this comment.
Nitpicking, but would there be a way to keep the default values in third_party/mavlink/CMakeLists.txt instead of moving them to the superbuild options? So that it stays consistent with the other dependencies and keeps CMakeLists "self-contained".
What do you think?
I tried that initially, however the values did not appear in |
|
Fair enough. I'd like to note that - somewhat ironically - this adds some "oddities" to the build system, as the dependency helpers now depend on knowledge that is stored in the superbuild 🙈. But it makes it easier to have a custom dialect, so that's a tradeoff. See how we got there? 😇 If @julianoes is fine with it, that's good for me as well 👍. |
|
I think, I agree with @JonasVautherin. It would be nicer to have these used/defined not just for the SUPERBUILD. Let me try it... |
|
FWIW, here's more details. If we instead put these variables in the Unfortunately, if you try to set this in the top level build command, you cannot; you get this warning. If we can find a way to control cache options in subprojects, that would allow us to keep it self contained. |
|
Oh, I see. Thanks for the explanation. |
|
Done. |
5e0ce09 to
a5eec2a
Compare
|
Oh dear, this broke CI? 😑 |
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
a5eec2a to
fcf85d7
Compare
|
|
@Ryanf55 are you happy with this? |
Looks great, thanks for fixing the broken CI by adding those build flags in! |



Proposal for allowing people to use their own forks of mavlink at compile time.
Usage:
cmake -B build -DMAVSDK_MAVLINK_URL=https://github.com/ryanf55/mavlink