def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_find_mode", "both")
    self.cpp_info.set_property("cmake_file_name", "XercesC")
    self.cpp_info.set_property("cmake_target_name", "XercesC::XercesC")
    self.cpp_info.set_property("pkg_config_name", "xerces-c")
    self.cpp_info.libs = collect_libs(self)
    if self.settings.os == "Macos":
        self.cpp_info.frameworks = ["CoreFoundation", "CoreServices"]
    elif self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.system_libs.append("pthread")
    if Version(conan_version).major < 2:
        self.cpp_info.names["cmake_find_package"] = "XercesC"
        self.cpp_info.names["cmake_find_package_multi"] = "XercesC"