diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-11 13:56:44 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-01-12 23:00:43 (GMT) |
commit | 06430919f4b903ba256ce158caf223f515faa8a4 (patch) | |
tree | 7e16be70f0417a04a153d525e88c6472a288ad09 | |
parent | ca179f2afc6d8ab5e0df3e35255155c21a61b5f6 (diff) | |
download | CMake-06430919f4b903ba256ce158caf223f515faa8a4.zip CMake-06430919f4b903ba256ce158caf223f515faa8a4.tar.gz CMake-06430919f4b903ba256ce158caf223f515faa8a4.tar.bz2 |
Autogen: Generators: Use FileAbsentOrOlder for UIC tests
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index d4997d5..645ecc0 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -1246,10 +1246,12 @@ bool cmQtAutoGenerators::GenerateUi(const std::string& realName, this->AutogenBuildSubDir + "include/" + uiOutputFile; const std::string uicFileAbs = this->CurrentBinaryDir + uicFileRel; - int sourceNewerThanUi = 0; - bool success = cmsys::SystemTools::FileTimeCompare(uiInputFile, uicFileAbs, - &sourceNewerThanUi); - if (this->GenerateAll || !success || sourceNewerThanUi >= 0) { + bool generateUic = this->GenerateAll; + // Test if the source file is newer that the build file + if (!generateUic) { + generateUic = FileAbsentOrOlder(uicFileAbs, uiInputFile); + } + if (generateUic) { // Log this->LogBold("Generating UIC header " + uicFileRel); |