-
Notifications
You must be signed in to change notification settings - Fork 994
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
[workspaces] conan build is broken #4802
Comments
Another downside is that I must provide CMake flags myself, even though they are mapped to conan options and set in the recipe. That's a huge problem in CI scripts. |
We will take a look, but at first sight, you use workspaces to avoid using EDIT: Do you maybe want to do the |
Do you mean that running |
Unfortunately not today, but yes, that's the idea in the roadmap. |
Hello, I'm bumping this issue with a reproducible case: Note that:
|
It is valid to use workspaces and In our case, we have several packages that we keep in a monorepo. Packages have their own conanfiles so they can declare their own dependencies (whether they be external packages or they be co-resident in the monorepo). Any package in the monorepo that needs to be built as a root package needs a workspace yml so it can locate the co-resident packages in the monorepo. We check in these workspace files in git. and have no immediate intention to ever export these packages. The root package has a confile with a build method. That is, were using the conanfile.py for consumers paradigm and it's very handy to have the build method with all of the settings/options/profiles abilities. Unfortunately, we can not update to 1.13.2 and later because of the workspace changes and the current cmake generator is not useful to me. |
Workspaces were removed in 2.0, but the plan is to resume work on them in the 2.X roadmap. |
Hello,
I'm running Conan 1.13.2 with workspaces. I successfully migrated my project to use them, however some of our devs are used to
conan build
, which is broken with current workspaces.When running
conan workspace install
, the top-level build directory only containsconanworkspace.cmake
. After running CMake and building, it will contain built artifacts.If I then want to run
conan build my_subproject
, I have to provide the install folder (which is the subproject's build folder, which I think is an issue as explained in #4800). But since it has no knowledge ofconanworkspace.cmake
(since the top-levelCMakeLists.txt
is not processed), it fails to find its dependencies located in the workspaces, thus the link fails.To help us debug your issue please explain:
The text was updated successfully, but these errors were encountered: