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

Method WriteCMakeContent

Source/cmInstrumentation.cxx:235–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void cmInstrumentation::WriteCMakeContent(
236 std::unique_ptr<cmGlobalGenerator> const& gg)
237{
238 Json::Value root;
239 root["targets"] = this->DumpTargets(gg);
240 root["custom"] = this->customContent;
241 root["project"] =
242 gg->GetCMakeInstance()->GetCacheDefinition("CMAKE_PROJECT_NAME").GetCStr();
243 this->WriteInstrumentationJson(
244 latestDataVersion, root, "data/content",
245 cmStrCat("cmake-", this->ComputeSuffixTime(), ".json"));
246}
247
248Json::Value cmInstrumentation::DumpTargets(
249 std::unique_ptr<cmGlobalGenerator> const& gg)

Callers 1

GenerateMethod · 0.80

Calls 7

DumpTargetsMethod · 0.95
ComputeSuffixTimeMethod · 0.95
GetCStrMethod · 0.80
GetCacheDefinitionMethod · 0.80
cmStrCatFunction · 0.70
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected