mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 21:41:03 +00:00
Autogen: Generators: Use FileAbsentOrOlder for UIC tests
This commit is contained in:
parent
ca179f2afc
commit
06430919f4
@ -1246,10 +1246,12 @@ bool cmQtAutoGenerators::GenerateUi(const std::string& realName,
|
|||||||
this->AutogenBuildSubDir + "include/" + uiOutputFile;
|
this->AutogenBuildSubDir + "include/" + uiOutputFile;
|
||||||
const std::string uicFileAbs = this->CurrentBinaryDir + uicFileRel;
|
const std::string uicFileAbs = this->CurrentBinaryDir + uicFileRel;
|
||||||
|
|
||||||
int sourceNewerThanUi = 0;
|
bool generateUic = this->GenerateAll;
|
||||||
bool success = cmsys::SystemTools::FileTimeCompare(uiInputFile, uicFileAbs,
|
// Test if the source file is newer that the build file
|
||||||
&sourceNewerThanUi);
|
if (!generateUic) {
|
||||||
if (this->GenerateAll || !success || sourceNewerThanUi >= 0) {
|
generateUic = FileAbsentOrOlder(uicFileAbs, uiInputFile);
|
||||||
|
}
|
||||||
|
if (generateUic) {
|
||||||
// Log
|
// Log
|
||||||
this->LogBold("Generating UIC header " + uicFileRel);
|
this->LogBold("Generating UIC header " + uicFileRel);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user