| 64 | } |
| 65 | |
| 66 | void cmConfigureLog::WriteBacktrace(cmMakefile const& mf) |
| 67 | { |
| 68 | std::vector<std::string> backtrace; |
| 69 | auto root = mf.GetCMakeInstance()->GetHomeDirectory(); |
| 70 | for (auto bt = mf.GetBacktrace(); !bt.Empty(); bt = bt.Pop()) { |
| 71 | auto t = bt.Top(); |
| 72 | if (!t.Name.empty() || t.Line == cmListFileContext::DeferPlaceholderLine) { |
| 73 | t.FilePath = cmSystemTools::RelativeIfUnder(root, t.FilePath); |
| 74 | std::ostringstream s; |
| 75 | s << t; |
| 76 | backtrace.emplace_back(s.str()); |
| 77 | } |
| 78 | } |
| 79 | this->WriteValue("backtrace"_s, backtrace); |
| 80 | } |
| 81 | |
| 82 | void cmConfigureLog::WriteChecks(cmMakefile const& mf) |
| 83 | { |
no test coverage detected