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

Method SetTraceFile

Source/cmake.cxx:1803–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1801}
1802
1803void cmake::SetTraceFile(std::string const& file)
1804{
1805 this->TraceFile.close();
1806 this->TraceFile.open(file.c_str());
1807 if (!this->TraceFile) {
1808 cmSystemTools::Error(cmStrCat("Error opening trace file ", file, ": ",
1809 cmSystemTools::GetLastSystemError()));
1810 return;
1811 }
1812 std::cout << "Trace will be written to " << file << '\n';
1813}
1814
1815void cmake::PrintTraceFormatVersion()
1816{

Callers 1

SetArgsMethod · 0.95

Calls 5

c_strMethod · 0.80
ErrorClass · 0.70
cmStrCatFunction · 0.70
closeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected