Closed
Description
What is your question?
I'm trying to use asio-grpc
library inside my conan package, which I'll be exporting. But when I'm trying to override grpc
version for asio-grpc
package inside my conanfile, exporting breaks.
Removing the override
flag works as intended.
Environment Details
- Operating System+version: Windows 11 22H2
- Compiler+version: MSVC 2022
- Conan version: 2.11.0
- Python version: 3.12.0
Steps to reproduce
- Create a conanfile with the following requirements:
def requirements(self):
self.requires("grpc/1.67.1", override=True, transitive_libs=True, transitive_headers=True)
self.requires("asio-grpc/2.9.2", transitive_libs=True, transitive_headers=True)
# ...
def package_info(self):
self.cpp_info.set_property("cmake_file_name", "my_package")
self.cpp_info.set_property("cmake_target_name", "my_package::my_package")
self.cpp_info.libs = ["my_package"]
self.cpp_info.requires = [
"asio-grpc::asio-grpc",
"grpc::grpc"
]
self.cpp_info.resdirs = ["share"]
- Run
conan create .
- Get error message:
ERROR: my_package/2.0.0: required component package 'grpc::' not in dependencies
Have you read the CONTRIBUTING guide?
- I've read the CONTRIBUTING guide