diff --git a/recipes/libcurl/all/conanfile.py b/recipes/libcurl/all/conanfile.py index 812348027ce98..5d786640a6020 100644 --- a/recipes/libcurl/all/conanfile.py +++ b/recipes/libcurl/all/conanfile.py @@ -4,7 +4,7 @@ from conans import ConanFile, AutoToolsBuildEnvironment, CMake, tools from conans.errors import ConanInvalidConfiguration -required_conan_version = ">=1.33.0" +required_conan_version = ">=1.36.0" class LibcurlConan(ConanFile): @@ -535,12 +535,11 @@ def package(self): tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig")) def package_info(self): - self.cpp_info.names["cmake_find_package"] = "CURL" - self.cpp_info.names["cmake_find_package_multi"] = "CURL" - self.cpp_info.names["pkg_config"] = "libcurl" - self.cpp_info.components["curl"].names["cmake_find_package"] = "libcurl" - self.cpp_info.components["curl"].names["cmake_find_package_multi"] = "libcurl" - self.cpp_info.components["curl"].names["pkg_config"] = "libcurl" + self.cpp_info.set_property("cmake_file_name", "CURL") + self.cpp_info.set_property("cmake_target_name", "CURL") + self.cpp_info.set_property("pkg_config_name", "libcurl") + self.cpp_info.components["curl"].set_property("cmake_target_name", "libcurl") + self.cpp_info.components["curl"].set_property("pkg_config_name", "libcurl") if self.settings.compiler == "Visual Studio": self.cpp_info.components["curl"].libs = ["libcurl_imp"] if self.options.shared else ["libcurl"]