| 1483 | } |
| 1484 | |
| 1485 | void 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 | } |
nothing calls this directly
no test coverage detected