You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a third choice (thanks @jcar87!), that would be much better: if the problem is that we want to allow recipes to patch the behavior of the target names or some other property while generating cmake files, the interface should clearly express that intention, so something like:
defgenerate(self):
cmake=CMakeDeps(self)
cmake.name_alternatives["jansson"] ="Jansson"# overrides the name of the generated files to thiscmake.target_aliases["jasson::jansson'] = ["Jansson::Jansson"]
This satisfies all needs:
The changes are clearly and naturally local, they only apply to a local object
There is no risk of destroying upstream data information
From #12357 from @madebr
I think there is a third choice (thanks @jcar87!), that would be much better: if the problem is that we want to allow recipes to patch the behavior of the target names or some other property while generating cmake files, the interface should clearly express that intention, so something like:
This satisfies all needs:
Originally posted by @memsharded in #12357 (comment)
The text was updated successfully, but these errors were encountered: