Ninja: Write target depend info only when it is different

This commit is contained in:
Mark Stegeman committed 2026-10-25 11:48:13 +01:00
1 parent 60b012591b
commit f0396a582c
1 file changed
+1
+1
View File
@@ -2532,6 +2532,7 @@ void cmNinjaTargetGenerator::WriteTargetDependInfo(std::string const& lang,
std::string const tdin = this->GetTargetDependInfoPath(lang, config);
cmGeneratedFileStream tdif(tdin);
tdif.SetCopyIfDifferent(true);
tdif << tdi;
}