def METHOD_NAME(self, cache_file):
    entries = []
    with open(cache_file, 'r') as cache:
        for line_no, line in enumerate(cache):
            entry = CMakeCacheEntry.from_line(line, line_no)
            if entry:
                entries.append(entry)
    self._entries = OrderedDict((e.name, e) for e in entries)