-
Notifications
You must be signed in to change notification settings - Fork 1k
[bug] Conan workspace ignores shared option #9506
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
Comments
Hi @asarayev That is unexpected, yes. I have been checking the code, and so far cannot reproduce it, there seems to be nothing intrinsic to the workspace that would change such option value. We would need more details, something like a minimal reproducible case in a zip or github repo would really help. Also, please beware that workspaces is an experimental feature, that hasn't been getting any efforts in a long time. This is because we are trying to improve first some of its foundation, specifically the "editables" and the |
Hi @memsharded I've quickly created a new repo for this. So if I build |
Hi @asarayev Thanks for your reproducible case, it really helped to identify what is happening. We have already delivered a new integration which handles this a bit better: Sorry, it doesn't seem easy a short term solution for this, as I said before, workspaces are still experimental, and we need to address some other more basic components first before working again on this feature. |
We should investigate if replacing Using the |
This should have been solved by the new It is in incubating: https://docs.conan.io/2/incubating.html. But please give your feedback in #18263 or create new tickets as necessary. Thanks for your feedback! |
I have a workspace with a few packages and one of them is supposed to build into a shared library. In the
conanfile.py
for this package I haveWhen I build it as a single package everything is fine but when I create it as part of the workspace it is built into a static library. I see in the log that option
shared
works and it is true but later inbuild.ninja
it says# Link the static library...
. So it seems like it simply ignores this option. Putshared=True
in theconan workspace install
command doesn't change anything too.The text was updated successfully, but these errors were encountered: