MCPcopy Create free account
hub / github.com/Kitware/CMake / WritePropertyEntries

Method WritePropertyEntries

Source/cmCacheManager.cxx:199–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void cmCacheManager::WritePropertyEntries(std::ostream& os,
200 std::string const& entryKey,
201 CacheEntry const& e,
202 cmMessenger* messenger) const
203{
204 for (char const* p : cmCacheManager::PersistentProperties) {
205 if (cmValue value = e.GetProperty(p)) {
206 std::string helpstring =
207 cmStrCat(p, " property for variable: ", entryKey);
208 cmCacheManager::OutputHelpString(os, helpstring);
209
210 std::string key = cmStrCat(entryKey, '-', p);
211 cmCacheManager::OutputKey(os, key);
212 os << ":INTERNAL=";
213 cmCacheManager::OutputValue(os, *value);
214 os << '\n';
215 cmCacheManager::OutputNewlineTruncationWarning(os, key, *value,
216 messenger);
217 }
218 }
219}
220
221bool cmCacheManager::SaveCache(std::string const& path, cmMessenger* messenger)
222{

Callers 1

SaveCacheMethod · 0.95

Calls 2

cmStrCatFunction · 0.70
GetPropertyMethod · 0.45

Tested by

no test coverage detected