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

Method WriteTryCompileEventFields

Source/cmCoreTryCompile.cxx:1485–1506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485void cmCoreTryCompile::WriteTryCompileEventFields(
1486 cmConfigureLog& log, cmTryCompileResult const& compileResult)
1487{
1488#ifndef CMAKE_BOOTSTRAP
1489 if (compileResult.LogDescription) {
1490 log.WriteValue("description"_s, *compileResult.LogDescription);
1491 }
1492 log.BeginObject("directories"_s);
1493 log.WriteValue("source"_s, compileResult.SourceDirectory);
1494 log.WriteValue("binary"_s, compileResult.BinaryDirectory);
1495 log.EndObject();
1496 if (!compileResult.CMakeVariables.empty()) {
1497 log.WriteValue("cmakeVariables"_s, compileResult.CMakeVariables);
1498 }
1499 log.BeginObject("buildResult"_s);
1500 log.WriteValue("variable"_s, compileResult.Variable);
1501 log.WriteValue("cached"_s, compileResult.VariableCached);
1502 log.WriteLiteralTextBlock("stdout"_s, compileResult.Output);
1503 log.WriteValue("exitCode"_s, compileResult.ExitCode);
1504 log.EndObject();
1505#endif
1506}

Callers

nothing calls this directly

Calls 5

WriteValueMethod · 0.80
BeginObjectMethod · 0.45
EndObjectMethod · 0.45
emptyMethod · 0.45
WriteLiteralTextBlockMethod · 0.45

Tested by

no test coverage detected