-
Notifications
You must be signed in to change notification settings - Fork 993
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] Indexing and building multiple recipes in correct order #15549
Comments
Hi! Thanks a lot for your question. First and foremost, Conan already manages your dependencies ordering as needed. This is the case for the If what you need is the build order of the dependencies for any given package, then I'd recommend looking into the |
Thank you for the answer. I believe for all these commands I need to point it to an explicit conanfile.py to kick-off the graph. Let's say |
I believe I have found what I need. I should either first run |
Hi @pkitslaar sorry for the delay. I initially misunderstood your question and thought you meant how to extract the dependencies to build from within CMake itself, but your second message clarifies that a lot. The approaches you mention are the current solutions for your use-case, but note that we plan to bring back the workspace feature to Conan 2 at some point, where multiple editable packages can be managed at once seamlessly, but for now the easiest way to tell Conan about a dependency name is to either export the recipe or create an editable out of it :) |
Closing as solved. For workspace updates, follow #15992 |
What is your question?
I am converting a large project from plain CMake to be managed by conan. The structure of the project is as follows:
\CMakeLists.txt
\libA\CMakeLists.txt
\libB\CMakeLists.txt
etc..
In the various libA, libB can have dependencies on each other. The way this is currently handled is that in the master CMakeLists.txt there are multiple add_subdirectory(..) calls in the correct order so that dependent libraries are visited first before the library that consumes them.
I am converting this to conan so each libX is a conan package with its own conanfile.py. In the conanfile.py I indicate the dependencies using the requires(...) methods.
Is there a way to easily scan/index the entire project and find all the dependencies between the projects and come up with some superbuild command so all the libraries are build/created in the correct order?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: