def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_file_name", "netCDF")
    self.cpp_info.set_property("cmake_target_name", "netCDF::netcdf")
    self.cpp_info.set_property("pkg_config_name", "netcdf")
    # TODO: back to global scope in conan v2 once cmake_find_package_* generators removed
    self.cpp_info.components["libnetcdf"].libs = ["netcdf"]
    self.cpp_info.components["libnetcdf"].libdirs       = ["lib"]
    self.cpp_info.components["libnetcdf"].includedirs   = ["include"]
    if self._with_hdf5:
        self.cpp_info.components["libnetcdf"].requires.append("hdf5::hdf5")
    if self.options.dap or self.options.byterange:
        self.cpp_info.components["libnetcdf"].requires.append("libcurl::libcurl")
    if self.settings.os in ["Linux", "FreeBSD"]:
        self.cpp_info.components["libnetcdf"].system_libs = ["dl", "m"]
    elif self.settings.os == "Windows":
        if self.options.shared:
            self.cpp_info.components["libnetcdf"].defines.append("DLL_NETCDF")
    # TODO: to remove in conan v2 once cmake_find_package_* generators removed
    self.cpp_info.names["cmake_find_package"] = "netCDF"
    self.cpp_info.names["cmake_find_package_multi"] = "netCDF"
    self.cpp_info.components["libnetcdf"].names["cmake_find_package"] = "netcdf"
    self.cpp_info.components["libnetcdf"].names["cmake_find_package_multi"] = "netcdf"
    self.cpp_info.components["libnetcdf"].set_property("cmake_target_name", "netCDF::netcdf")
    self.cpp_info.components["libnetcdf"].set_property("pkg_config_name", "netcdf")