Skip to content

Commit

Permalink
Update conanfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fdr400 authored Nov 1, 2024
1 parent c5a88e0 commit 01760d0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ def copy_component(component):

if self.options.with_grpc:
copy_component('grpc')
copy(
self,
pattern='*',
dst=os.path.join(self.package_folder, 'include', 'grpc-proto'),
src=os.path.join(
self.source_folder, 'grpc', 'proto',
),
keep_path=True,
)
copy(
self,
pattern='*',
Expand Down Expand Up @@ -669,7 +678,6 @@ def add_components(components):
if cmake_component == 'grpc':
self.cpp_info.components[conan_component].libs.append(
get_lib_name('grpc-internal'),
get_lib_name('grpc-proto'),
)
else:
self.cpp_info.components[conan_component].libs = [lib_name]
Expand All @@ -683,7 +691,7 @@ def add_components(components):
].includedirs.append(
os.path.join('include', 'function_backports'),
)
if cmake_component != 'ubench' and cmake_component != 'grpc-proto':
if cmake_component != 'ubench':
self.cpp_info.components[
conan_component
].includedirs.append(
Expand Down

0 comments on commit 01760d0

Please sign in to comment.