-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] CMakeDeps throws error for package(s) defined as platform_requires #3908
Comments
This is not a bug, this is expected. The For other cases, it is necessary to use |
Thank you for the explanation! I wish docs communicated the limitations better, as its unclear that one is likely to face issues with this feature. If I understand correctly, a perfect use case for platform_requires is when you have full control over the recipes used, can freely edit/adjust what you want. Which is not the case with CCI-provided recipes.
now, to my understanding, this is also something that the wrapper recipe should take care of instead of editing CCI recipes.
what would be the recommendation to name such recipes? |
Yes, that is true, it was more thorougly explained in the blog post, but the docs are a bit scarce here, lets try to complete them a bit more
Yes, not the case for many recipes in CCI (many other recipes in CCI might actually work). The key is that it cannot be used if other recipes does a explicit reference to it, to its components, or the like. If a recipe has only the
Yes
Channel is not recommended as a variable/stage dynamic qualifier to represent a variable maturity or stage in the process. It can be safely used as kind of an immutable/invariant namespace to differentiate things. For ConanCenter like packages we usually don't recommend using |
Thank you very much! Now all is clear. Should I close the issue or you'd like to keep it open until docs are improved? |
Lets move it to docs repo |
Describe the bug
macOS 14.7, Conan 2.9.2, apple-clang 15
I declared some libs as
platform_requires
(Apple OSs have them preinstalled in the system), everything built fine. But at the final moment when CMakeDeps starts its work it throws an error:Also, had to tune a few other recipes a bit that they don't throw an error when trying to access the platform_requires libs from
self.dependencies
, see here. Is it to be considered a bug or should be adjusted on a recipe basis?Previously in Conan v1 I wrote wrapper recipes for these libs and there was no such issue. Oh, actually I faced one issue that resembles the
self.dependencies
one described above for which I provided a PR conan-io/conan-center-index#23478, but no issues with CMakeDeps.P.S. Also asked this on Slack
P.P.S. One more example of such error, but no full log at hand at the moment:
How to reproduce it
conanfile.txt
Build profile (basically the detected one):
Host profile: same as build (used
include
) with the addition ofCommand used:
Full log: log.txt.zip
The text was updated successfully, but these errors were encountered: