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

Method TestInfoFile

Source/cmQtAutoRcc.cxx:426–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426bool cmQtAutoRccT::TestInfoFile()
427{
428 // Test if the rcc output file is older than the info file
429 if (this->RccFileTime_.Older(this->InfoFileTime())) {
430 if (this->Log().Verbose()) {
431 this->Log().Info(GenT::RCC,
432 cmStrCat("Touching ",
433 this->MessagePath(this->RccFileOutput_),
434 " because it is older than ",
435 this->MessagePath(this->InfoFile())));
436 }
437 // Touch build file
438 if (!cmSystemTools::Touch(this->RccFileOutput_, false)) {
439 this->Log().Error(GenT::RCC,
440 cmStrCat("Touching ",
441 this->MessagePath(this->RccFileOutput_),
442 " failed."));
443 return false;
444 }
445 this->BuildFileChanged_ = true;
446 }
447
448 return true;
449}
450
451bool cmQtAutoRccT::GenerateRcc()
452{

Callers 1

ProcessMethod · 0.95

Calls 8

OlderMethod · 0.80
InfoFileTimeMethod · 0.80
VerboseMethod · 0.80
InfoMethod · 0.80
cmStrCatFunction · 0.70
LogMethod · 0.45
MessagePathMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected