Fix grcp@1.27.0: (#16052)
Current default version was missing a dependency.
This commit is contained in:
parent
6eee7b6bb8
commit
94aa368af8
@ -8,6 +8,8 @@
|
|||||||
class Grpc(CMakePackage):
|
class Grpc(CMakePackage):
|
||||||
"""A high performance, open-source universal RPC framework."""
|
"""A high performance, open-source universal RPC framework."""
|
||||||
|
|
||||||
|
maintainers = ['nazavode']
|
||||||
|
|
||||||
homepage = "https://grpc.io"
|
homepage = "https://grpc.io"
|
||||||
url = "https://github.com/grpc/grpc/archive/v1.27.0.tar.gz"
|
url = "https://github.com/grpc/grpc/archive/v1.27.0.tar.gz"
|
||||||
|
|
||||||
@ -25,6 +27,7 @@ class Grpc(CMakePackage):
|
|||||||
depends_on('openssl')
|
depends_on('openssl')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
depends_on('c-ares')
|
depends_on('c-ares')
|
||||||
|
depends_on('abseil-cpp', when='@1.27.0:')
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
args = [
|
args = [
|
||||||
@ -44,4 +47,6 @@ def cmake_args(self):
|
|||||||
'-DgRPC_GFLAGS_PROVIDER:String=none',
|
'-DgRPC_GFLAGS_PROVIDER:String=none',
|
||||||
'-DgRPC_BENCHMARK_PROVIDER:String=none',
|
'-DgRPC_BENCHMARK_PROVIDER:String=none',
|
||||||
]
|
]
|
||||||
|
if self.spec.satisfies('@1.27.0:'):
|
||||||
|
args.append('-DgRPC_ABSL_PROVIDER:String=package')
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user