| 424 | } |
| 425 | |
| 426 | bool 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 | |
| 451 | bool cmQtAutoRccT::GenerateRcc() |
| 452 | { |
no test coverage detected