Make sure py-protobuf package can link to libprotobuf when building (#20280)
This commit is contained in:
parent
15fd386a20
commit
90b3f7f259
@ -57,6 +57,11 @@ def build_directory(self):
|
||||
else:
|
||||
return '.'
|
||||
|
||||
@when('+cpp')
|
||||
def setup_build_environment(self, env):
|
||||
protobuf_dir = self.spec['protobuf'].libs.directories[0]
|
||||
env.prepend_path('LIBRARY_PATH', protobuf_dir)
|
||||
|
||||
@when('+cpp')
|
||||
def build_args(self, spec, prefix):
|
||||
return ['--cpp_implementation']
|
||||
|
Loading…
Reference in New Issue
Block a user