|
@@ -1369,7 +1369,6 @@ bool cmQtAutoGenInitializer::InitAutogenTarget()
|
|
|
std::vector<std::string> dependencies(
|
|
|
this->AutogenTarget.DependFiles.begin(),
|
|
|
this->AutogenTarget.DependFiles.end());
|
|
|
-
|
|
|
if (useDepfile) {
|
|
|
// Create a custom command that generates a timestamp file and
|
|
|
// has a depfile assigned. The depfile is created by JobDepFilesMergeT.
|
|
@@ -1408,6 +1407,16 @@ bool cmQtAutoGenInitializer::InitAutogenTarget()
|
|
|
cc->SetEscapeOldStyle(false);
|
|
|
cmTarget* timestampTarget = this->LocalGen->AddUtilityCommand(
|
|
|
timestampTargetName, true, std::move(cc));
|
|
|
+ auto const isMake =
|
|
|
+ this->GlobalGen->GetName().find("Make") != std::string::npos;
|
|
|
+ if (this->AutogenTarget.DependOrigin && isMake) {
|
|
|
+ for (BT<std::pair<std::string, bool>> const& depName :
|
|
|
+ this->GenTarget->GetUtilities()) {
|
|
|
+ timestampTarget->AddUtility(depName.Value.first, false,
|
|
|
+ this->Makefile);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
this->LocalGen->AddGeneratorTarget(
|
|
|
cm::make_unique<cmGeneratorTarget>(timestampTarget, this->LocalGen));
|
|
|
|