Closed PauloCarvalhoRJ closed 1 week ago
self.dependencies["mydep"].package_folder
The package folder is a property of the dependency, not cpp_info now.
Still, when using from a consumer in generate()
things like sefl.dependencies["mydep"].cpp_info.includedirs
should be absolute paths.
That API makes more sense indeed. True, sefl.dependencies["mydep"].cpp_info.includedirs
has an absolute path, but I couldn't know beforehand which level it is with respect to the package's, hence the need for a separate attribute to return the dependency package's path.
Thanks yet again.
Greetings,
I'm currently migrating from Conan 1 and I have recipe code like this:
From what I learned so far, I now need to use, in
generate()
:However, there is no
rootpath
attribute incpp_info
object: https://docs.conan.io/2/reference/conanfile/methods/package_info.html#conan-conanfile-model-cppinfo . All the attributes that are directories are relative paths (e.g. include dirs). So, how can I have the same information thatrootpath
used to provide with the newcpp_info
attributes?thanks,
PC
Have you read the CONTRIBUTING guide?