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

Function cmakeCheckStampList

Source/cmake.cxx:247–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247bool cmakeCheckStampList(std::string const& stampList)
248{
249 // If the stamp list does not exist CMake must rerun to generate it.
250 if (!cmSystemTools::FileExists(stampList)) {
251 std::cout << "CMake is re-running because generate.stamp.list "
252 "is missing.\n";
253 return false;
254 }
255 cmsys::ifstream fin(stampList.c_str());
256 if (!fin) {
257 std::cout << "CMake is re-running because generate.stamp.list "
258 "could not be read.\n";
259 return false;
260 }
261
262 // Check each stamp.
263 std::string stampName;
264 while (cmSystemTools::GetLineFromStream(fin, stampName)) {
265 if (!cmakeCheckStampFile(stampName)) {
266 return false;
267 }
268 }
269 return true;
270}
271
272} // namespace
273

Callers 2

RunMethod · 0.85
BuildMethod · 0.85

Calls 3

cmakeCheckStampFileFunction · 0.85
c_strMethod · 0.80
FileExistsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…