Commit 06430919 authored by Sebastian Holtermann's avatar Sebastian Holtermann

Autogen: Generators: Use FileAbsentOrOlder for UIC tests

parent ca179f2a
Pipeline #42447 passed with stage
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment