diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-11 20:13:39 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-11 20:15:47 (GMT) |
commit | 54903af84bc8656344e7fe1ea0a11d5f09e94f86 (patch) | |
tree | f2a344e2a8563438ce9e75dcc96a530f9f80fc38 | |
parent | 081104fb003a56bb3d8330363795ace5b71bc3f8 (diff) | |
download | CMake-54903af84bc8656344e7fe1ea0a11d5f09e94f86.zip CMake-54903af84bc8656344e7fe1ea0a11d5f09e94f86.tar.gz CMake-54903af84bc8656344e7fe1ea0a11d5f09e94f86.tar.bz2 |
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.
-rw-r--r-- | Source/cmQtAutoRcc.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/cmQtAutoRcc.cxx b/Source/cmQtAutoRcc.cxx index f841260..7063f6a 100644 --- a/Source/cmQtAutoRcc.cxx +++ b/Source/cmQtAutoRcc.cxx @@ -383,18 +383,7 @@ bool cmQtAutoRcc::TestResources(bool& generate) bool cmQtAutoRcc::TestInfoFile() { // Test if the rcc output file is older than the info file - - 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 (RccFileTime_.Older(InfoFileTime())) { if (Log().Verbose()) { std::string reason = "Touching "; reason += Quoted(RccFileOutput_); |