-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[grpc] Use build_modules to find executable grpc_cpp_plugin #5404
[grpc] Use build_modules to find executable grpc_cpp_plugin #5404
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There a new point release of you want to cherry pick it |
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
What is your opinion about this approach with the |
Generated and committed by [Conan Center Bot](https://github.com/qchateau/conan-center-bot) Find more updatable recipes in the [GitHub Pages](https://qchateau.github.io/conan-center-bot/) Co-authored-by: Quentin Chateau via Conan Center Bot <quentin.chateau@gmail.com>
I like it separated since it's "cleaner" but there's a practicality of it all being in the same spot which I can live with. The tie breaking for me is the template rendering. protobuf dynamically counts the directories (maybe that's a little overkill)
|
/cc @Croydon as reviewer. |
…plugin * [google-cloud-cpp] Add library * start to work on deps * exclude tests, use config for CMake packages * Add build module to find grpc_cpp_plugin * [crc32c] Add recipe * add crc32c dep * update grpc * remove, not for this PR * [grpc] Use build_modules to find the grcp_cpp_plugin * Update recipes/grpc/all/conanfile.py Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * grpc: add version 1.37.1 (conan-io#6) Generated and committed by [Conan Center Bot](https://github.com/qchateau/conan-center-bot) Find more updatable recipes in the [GitHub Pages](https://qchateau.github.io/conan-center-bot/) Co-authored-by: Quentin Chateau via Conan Center Bot <quentin.chateau@gmail.com> Co-authored-by: Chris Mc <prince.chrismc@gmail.com> Co-authored-by: Quentin Chateau via Conan Center Bot <quentin.chateau@gmail.com>
if self.options.cpp_plugin: | ||
module_target_rel_path = os.path.join("lib", "cmake", "grpc_cpp_plugin.cmake") | ||
self.cpp_info.components["execs"].build_modules["cmake_find_package"] = [module_target_rel_path] | ||
self.cpp_info.components["execs"].build_modules["cmake_find_package_multi"] = [module_target_rel_path] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did it pass the hooks? This folder is not in buiddirs.
Specify library name and version: grpc/1.37.0
Taken from
protobuf
package, this approach using build_modules will find the executable from a package in build context and also for the native one.Approach is a bit different, exporting the build_module and using an auxiliary target... submitting for consideration.