conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.31k stars 986 forks source link

[question] What is the ideal way of deploying a tool coming from a conan package? #17150

Closed Todiq closed 2 weeks ago

Todiq commented 1 month ago

What is your question?

Hello,

I have a conan package that contains several libraries, but also some executables

In another project, I use that package to link with the libraries coming from it

While it has become easier to deploy those alongside the project itself thanks to the new install(RUNTIME_DEPENDENCY_SET my_app_deps ... block, I wondered what was the ideal way to do the same thing for executables.

A workaround I found is the following:

MY_CMD can not really be considered as a build tool aka tool_requires but more like a regular requires, as an executable from the main project calls it

Could you please enlighten me? Thanks in advance!

Have you read the CONTRIBUTING guide?

memsharded commented 1 month ago

Hi @Todiq

Quick question, haven't you considered using a deployer? they are pretty straightforward to run and maintain, and doesn't require modifying recipes at all (having to add some env-vars to all recipes seems a bit too much)

Todiq commented 2 weeks ago

Indeed, that does the trick. Thanks a lot!