Closed naggerx closed 1 day ago
Hi @naggerx
Thanks for your question.
Yes, I am afraid this is a known issue of private=True
in legacy Conan 1.
The self.deps_cpp_info
is legacy, even within Conan 1.X. Please try to use the self.dependencies
interface to access information from dependencies.
It's really unexpected that self.dependencies
is available in build()
when using 'conan create', but not when using 'conan install' and 'conan build'.
And since I use install&build I have to find another way to transfer the infos from generate() to build()
The recommended way, both in Conan 1 and Conan 2 is:
generate()
method iterates self.dependencies
and creates the necessary files for the build, as CMakeDeps
is doing.build()
method, or the user build cmake ...
just will pick the information from created files
What is your question?
I have to enable cross-building for a project. I'm running into strange behavior regarding private dependencies.
When installing & building with one profile everything works:
But when using a build profile, even when its the same as the host profile:
Is this expected behavior? Is there a workaround, without changing the "private=True"?
Have you read the CONTRIBUTING guide?