-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#5404) [grpc] Use build_modules to find executable grpc_cpp_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 (#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>
- Loading branch information
1 parent
a46a4a6
commit 74588f1
Showing
6 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if(NOT TARGET gRPC::grpc_cpp_plugin) | ||
if(CMAKE_CROSSCOMPILING) | ||
find_program(GRPC_CPP_PLUGIN_PROGRAM | ||
NAMES grpc_cpp_plugin | ||
PATHS ENV | ||
PATH NO_DEFAULT_PATH) | ||
else() | ||
find_program(GRPC_CPP_PLUGIN_PROGRAM | ||
NAMES grpc_cpp_plugin | ||
PATHS "${CMAKE_CURRENT_LIST_DIR}/../../bin/" | ||
NO_DEFAULT_PATH) | ||
endif() | ||
|
||
get_filename_component(GRPC_CPP_PLUGIN_PROGRAM "${GRPC_CPP_PLUGIN_PROGRAM}" ABSOLUTE) | ||
|
||
add_executable(gRPC::grpc_cpp_plugin IMPORTED) | ||
set_property(TARGET gRPC::grpc_cpp_plugin PROPERTY IMPORTED_LOCATION ${GRPC_CPP_PLUGIN_PROGRAM}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
sources: | ||
"1.37.1": | ||
url: "https://github.com/grpc/grpc/archive/v1.37.1.tar.gz" | ||
sha256: "acf247ec3a52edaee5dee28644a4e485c5e5badf46bdb24a80ca1d76cb8f1174" | ||
"1.37.0": | ||
url: https://github.com/grpc/grpc/archive/refs/tags/v1.37.0.tar.gz | ||
sha256: "c2dc8e876ea12052d6dd16704492fd8921df8c6d38c70c4708da332cf116df22" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
versions: | ||
"1.37.1": | ||
folder: "all" | ||
"1.37.0": | ||
folder: "all" |