def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_file_name", "yaml-cpp")
    self.cpp_info.set_property("cmake_target_name", "yaml-cpp")
    self.cpp_info.set_property("pkg_config_name", "yaml-cpp")
    self.cpp_info.libs = collect_libs(self)
    if self.settings.os in ("Linux", "FreeBSD"):
        self.cpp_info.system_libs.append("m")
    if is_msvc(self):
        self.cpp_info.defines.append("_NOEXCEPT=noexcept")
        if Version(self.version) < "0.8.0" and self.options.shared:
            self.cpp_info.defines.append("YAML_CPP_DLL")
        if Version(self.version) >= "0.8.0" and not self.options.shared:
            self.cpp_info.defines.append("YAML_CPP_STATIC_DEFINE")
    # TODO: to remove in conan v2 once cmake_find_package_* generators removed
    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]