-
Notifications
You must be signed in to change notification settings - Fork 988
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
[question] editable mode breaks CMakeDeps/CMakeToolchain #12840
Comments
As commented in the other issue, please try the producer with the |
You're right, |
The proper way is in the |
Thanks for super quick response! My understanding is that my project is likely broken because it contains multiple components and therefore I do specify |
Yes, components layouts can also be defined in the def layout(self):
self.cpp.source.components["foo"].includedirs = ["my_include_foo"]
self.cpp.build.components["foo"].libdirs= ["my_lib_foo"]
... It seems there are no explicit examples for this in the docs, but it relies on dcoumenting that |
No, I'm specifying them in And the original def package_info(self):
producer = self.cpp_info.components["producer"]
producer.libs = ["producer"]
producer.libdirs = ["lib"]
producer.includedirs = ["include"] I assumed it was superfluous, but harmless. But it seems that it can change the paths in generated files. |
That could be the issue. If you want that package to be in editable, you need to define the equivalent to that in the |
I see. Thanks, I'll try to do that! That's probably something worth mentioning in the docs.. |
Closing this, as there's no issue in Conan per se. Rather a small unclarity caused by lack of information in the docs. Thanks for help! :) |
Thanks! We hope that the 2.0 docs will provide more clarity about this, we will try to add some more examples in https://docs.conan.io/2/tutorial/developing_packages/package_layout.html |
Environment details
Steps to reproduce
conan editable add ../producer/ producer/1.0
conan install . -u -pr:h default -pr:b default --build missing -if conan-editable-cmake
The last step fails with internal Conan error and Python stack trace
Logs
The text was updated successfully, but these errors were encountered: