From 9838dd05668f79c6bfda08a46757d402f67b2b92 Mon Sep 17 00:00:00 2001 From: Brian Szmyd Date: Mon, 12 Aug 2024 10:21:09 -0700 Subject: [PATCH] Fix v1 compat. --- conanfile.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/conanfile.py b/conanfile.py index badd917..3d6730a 100644 --- a/conanfile.py +++ b/conanfile.py @@ -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"] @@ -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")