Skip to content

Commit

Permalink
Fix v1 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Aug 12, 2024
1 parent 7aa82b2 commit 9838dd0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ def layout(self):

self.cpp.package.components["proto"].libs = ["nuraft_mesg_proto"]
self.cpp.package.components["proto"].set_property("pkg_config_name", "libnuraft_mesg_proto")
self.cpp.package.components["proto"].requires.extend([
"nuraft::nuraft",
"boost::boost",
"sisl::sisl"
])
self.cpp.package.includedirs = ["include"] # includedirs is already set to 'include' by
self.cpp.package.libdirs = ["lib"]

Expand Down Expand Up @@ -124,6 +119,12 @@ def package(self):
copy(self, "*.so*", self.build_folder, lib_dir, keep_path=False)

def package_info(self):
self.cpp_info.components["proto"].requires.extend([
"nuraft::nuraft",
"boost::boost",
"sisl::sisl"
])

for component in self.cpp_info.components.values():
if self.options.get_safe("sanitize"):
component.sharedlinkflags.append("-fsanitize=address")
Expand Down

0 comments on commit 9838dd0

Please sign in to comment.