From 0e72fedc95665b247cdbc4843765a7281206f9bb Mon Sep 17 00:00:00 2001 From: anonymousdouble <112695649+anonymousdouble@users.noreply.github.com> Date: Mon, 1 Jan 2024 21:32:11 +1100 Subject: [PATCH] Update conanfile.py refactor with chain constant value assignment to make code more Pythonic, concise and efficient. --- recipes/dbus/1.x.x/conanfile.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/recipes/dbus/1.x.x/conanfile.py b/recipes/dbus/1.x.x/conanfile.py index c20fd3f03b189..0319d20525a7c 100644 --- a/recipes/dbus/1.x.x/conanfile.py +++ b/recipes/dbus/1.x.x/conanfile.py @@ -180,10 +180,7 @@ def package_info(self): self.cpp_info.defines.append("DBUS_STATIC_BUILD") # TODO: to remove in conan v2 once cmake_find_package_* & pkg_config generators removed - self.cpp_info.filenames["cmake_find_package"] = "DBus1" - self.cpp_info.filenames["cmake_find_package_multi"] = "DBus1" - self.cpp_info.names["cmake_find_package"] = "dbus-1" - self.cpp_info.names["cmake_find_package_multi"] = "dbus-1" + self.cpp_info.filenames["cmake_find_package_multi"] = self.cpp_info.filenames["cmake_find_package"] = "DBus1" + self.cpp_info.names["pkg_config"] = self.cpp_info.names["cmake_find_package_multi"] = self.cpp_info.names["cmake_find_package"] = "dbus-1" self.cpp_info.build_modules["cmake_find_package"] = [self._module_file_rel_path] self.cpp_info.build_modules["cmake_find_package_multi"] = [self._module_file_rel_path] - self.cpp_info.names["pkg_config"] = "dbus-1"