Browse Source

Merge topic 'fix-ninja-dependinfo-location'

a16566105b cmNinjaTargetGenerator: fix DependInfo.json generation location

Acked-by: Kitware Robot <[email protected]>
Tested-by: buildbot <[email protected]>
Merge-request: !10868
Brad King 5 months ago
parent
commit
ba8399692c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Source/cmNinjaTargetGenerator.cxx

+ 3 - 2
Source/cmNinjaTargetGenerator.cxx

@@ -490,8 +490,9 @@ std::string cmNinjaTargetGenerator::GetDyndepFilePath(
 std::string cmNinjaTargetGenerator::GetTargetDependInfoPath(
   std::string const& lang, std::string const& config) const
 {
-  return cmStrCat(this->GetObjectFileDir(config), '/', lang,
-                  "DependInfo.json");
+  return cmStrCat(this->GeneratorTarget->GetSupportDirectory(),
+                  this->GetGlobalGenerator()->ConfigDirectory(config), '/',
+                  lang, "DependInfo.json");
 }
 
 std::string cmNinjaTargetGenerator::GetTargetOutputDir(