cmake: Add mp_headers custom target#291
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste |
ryanofsky
left a comment
There was a problem hiding this comment.
Code review ACK 941f692. It seems like a good idea to expose a target that will generate the library headers so outside targets can depend on them, and since they are probably needed for most static analysis.
But I'm not sure why PR description says this is required for bitcoin/bitcoin#35468 when it doesn't seem to be referenced there. I wonder if this target is required for anything in particular.
Could also consider making this definition more consistent with target_capnp_sources:
with:
add_custom_target(mp_headers DEPENDS ${MP_PROXY_HDRS})But current definition seems ok.
I've updated bitcoin/bitcoin#35468. Please see bitcoin/bitcoin#35468 (comment). |
I've been thinking about changes in the opposite direction. The |
This convenience target allows generating Cap'n Proto C++ source files, which is useful as the `capnp_generate_cpp` function is not CODEGEN-aware.
mp_proxy_codegen custom targetmp_headers custom target
This convenience target allows generating Cap'n Proto C++ source files, which is useful as the
capnp_generate_cppfunction is notCODEGEN-aware.Required for bitcoin/bitcoin#35468.