-
Notifications
You must be signed in to change notification settings - Fork 990
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] Best practice for installing many package artifacts to a common runtime location #13869
Comments
Thanks for your question. Then, the The CMake install capabilities might be a bit limited for the dependencies, and there are also some possible limitations due to lack of information and definitions of CMake targets of dependencies for shared libraries. Though there are planned some improvements in CMakeDeps generator for this, this will take time. So probably the |
Hi @memsharded, thanks for getting back to me. I had another deployer-related question (if you don't mind). I've been able to mostly do exactly what I want in terms of building a user-space application folder using a custom deployer; however, I'm wondering if there's a conan-way to have each recipe describe how it wants to be deployed individually (maybe in its own recipe) so that I could have some libs and executables from certain packages deploy into one folder, and maybe some other libs and executables deploy into a different folder without having to write this logic in a custom deployer? I read in the 1.X docs that there was a deploy() method, but invoking it required a conan install with an explicit package reference which seemed like it would make automating deployment less practical if I'm understanding that correctly (apologies if I'm not). |
You are right, this was a recipe thing in Conan 1.X, but we realized that it had a bunch of issues and unexpected side effects.
With that you should be able to export/create that recipe and use it to deploy your applications, just by installing that |
There have been some progress since then in Conan 2:
I am closing this question as solved, but please don't hesitate to create new tickets for any further question or issue you might have. Thanks for the feedback! |
What is your question?
Say I have packages a, b, c, d, etc., and I want to take the libs and exe's from them and have them be installed in a specified directory where I can then run/test them. Assuming all packages were built using cmake (deps, toolchain, layout, etc.), would it then be best to just have cmake handle this during the install stage? I've been wondering if deployers would be more suited to handling this?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: