This is an automated email from the ASF dual-hosted git repository. pengzheng pushed a commit to branch feature/483-conan-2-support in repository https://gitbox.apache.org/repos/asf/celix.git
commit 1c5605af19b4ad502dd726a85e7db8bf26cfc0ba Author: PengZheng <howto...@gmail.com> AuthorDate: Wed Aug 23 16:34:18 2023 +0800 Fix missing `deps_cpp_info` for Conan 2 --- conanfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conanfile.py b/conanfile.py index dd29d583..55f42b1f 100644 --- a/conanfile.py +++ b/conanfile.py @@ -411,9 +411,9 @@ class CelixConan(ConanFile): for opt in self._celix_defaults.keys(): tc.cache_variables[opt.upper()] = self.options.get_safe(opt) if self.options.enable_testing: - for k in self.deps_cpp_info.deps: - if k == "mdnsresponder": - tc.cache_variables["BUILD_ERROR_INJECTOR_MDNSRESPONDER"] = "ON" + lst = [x.ref.name for x in self.requires.values()] + if "mdnsresponder" in lst: + tc.cache_variables["BUILD_ERROR_INJECTOR_MDNSRESPONDER"] = "ON" tc.cache_variables["CELIX_ERR_BUFFER_SIZE"] = self.options.celix_err_buffer_size # tc.cache_variables["CMAKE_PROJECT_Celix_INCLUDE"] = os.path.join(self.build_folder, "conan_paths.cmake") # the following is workaround for https://github.com/conan-io/conan/issues/7192