Reputation: 67
How to access or generate package id hash in conan in the build step of conanfile.py? I want to pass it inside cmake to report on -v the full version of my program including the hash.
Upvotes: 1
Views: 4136
Reputation: 3887
This is a known question in Conan Issues, please take a look there: https://github.com/conan-io/conan/issues/7100
Basically, you can access it by:
packageid = self.info.package_id()
Upvotes: 1