Skip to content

Commit

Permalink
Fix missing deps_cpp_info for Conan 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Aug 23, 2023
1 parent e7d277a commit 1c5605a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ def generate(self):
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
Expand Down

0 comments on commit 1c5605a

Please sign in to comment.