mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-08 16:19:36 -06:00
AutoRcc: Don't read the info file time again
In `AUTORCC` use the info file time that's available already instead of reading it again.
This commit is contained in:
@@ -383,18 +383,7 @@ bool cmQtAutoRcc::TestResources(bool& generate)
|
|||||||
bool cmQtAutoRcc::TestInfoFile()
|
bool cmQtAutoRcc::TestInfoFile()
|
||||||
{
|
{
|
||||||
// Test if the rcc output file is older than the info file
|
// Test if the rcc output file is older than the info file
|
||||||
|
if (RccFileTime_.Older(InfoFileTime())) {
|
||||||
cmFileTime infoFileTime;
|
|
||||||
if (!infoFileTime.Load(InfoFile())) {
|
|
||||||
std::string error;
|
|
||||||
error = "Could not find the info file ";
|
|
||||||
error += Quoted(InfoFile());
|
|
||||||
error += '\n';
|
|
||||||
Log().ErrorFile(GenT::RCC, QrcFile_, error);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (RccFileTime_.Older(infoFileTime)) {
|
|
||||||
|
|
||||||
if (Log().Verbose()) {
|
if (Log().Verbose()) {
|
||||||
std::string reason = "Touching ";
|
std::string reason = "Touching ";
|
||||||
reason += Quoted(RccFileOutput_);
|
reason += Quoted(RccFileOutput_);
|
||||||
|
|||||||
Reference in New Issue
Block a user