conan icon indicating copy to clipboard operation
conan copied to clipboard

[question] How to call generator without install command

Open steffenroeber opened this issue 1 year ago • 2 comments

What is your question?

Hi, can I somehow trigger a generator without using conan install, which downloads all binaries? Also conan lock install downloads either binaries or if using --recipes doesn't call the generator.

Have you read the CONTRIBUTING guide?

  • [X] I've read the CONTRIBUTING guide

steffenroeber avatar Mar 01 '24 14:03 steffenroeber

Hi, can I somehow trigger a generator without using conan install, which downloads all binaries?

conan install doesn't download binaries if they are already in the cache, in that case it will be very cheap and fast

The generators work over the dependency graph, so it needs the dependencies installed, otherwise they have not enough inputs to generate its information. Generators operate over dependency.cpp_info.includedirs, dependency.cpp_info.libdirs, dependency.cpp_info.libs, etc. If the package binaries are not there, the cpp_info is not there, and generators will not work.

In Conan 2, the conan graph info command, with the --format=json will give you a thorough view of the dependency graph without downloading the binaries. Still cannot generate or call generators, same rationale as above applies.

memsharded avatar Mar 01 '24 15:03 memsharded

Any further question here @steffenroeber ?

Can we close the ticket as solved? Thanks!

memsharded avatar Apr 27 '24 22:04 memsharded