فهرست منبع

cmNinjaTargetGenerator: scanning depends on the module metadata

Fixes: #25531
Ben Boeckel 1 سال پیش
والد
کامیت
60a8736378
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Source/cmNinjaTargetGenerator.cxx

+ 2 - 0
Source/cmNinjaTargetGenerator.cxx

@@ -1195,6 +1195,8 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatements(
                this->LocalGenerator->GetTargetDirectory(this->GeneratorTarget),
                this->LocalGenerator->GetTargetDirectory(this->GeneratorTarget),
                this->GetGlobalGenerator()->ConfigDirectory(config), '/',
                this->GetGlobalGenerator()->ConfigDirectory(config), '/',
                language, "Modules.json"));
                language, "Modules.json"));
+    build.ImplicitDeps.emplace_back(
+      this->GetTargetDependInfoPath(language, config));
     for (auto const& scanFiles : scanningFiles) {
     for (auto const& scanFiles : scanningFiles) {
       if (!scanFiles.ScanningOutput.empty()) {
       if (!scanFiles.ScanningOutput.empty()) {
         build.ExplicitDeps.push_back(scanFiles.ScanningOutput);
         build.ExplicitDeps.push_back(scanFiles.ScanningOutput);