What is your suggestion?
I have some local code as a sketch for this, but this came up in the process of adding libtorch to CCI, where we need to inject the flags manually as part of the cpp_info link flags - While this approach is more global (the proposed feature here only targets cmake), maybe this is something we want Conan to handle?
Have you read the CONTRIBUTING guide?