BUG: cmake.depends files of zero size were not being re-written in some cases. Added a comment output to the top of the file so it will be re-written every time.

This commit is contained in:
Brad King 2001-12-11 15:59:33 -05:00
parent e0aee2e988
commit 4108b22486
1 changed files with 1 additions and 0 deletions

View File

@ -266,6 +266,7 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file)
cmSystemTools::Error("Error can not open for write: ", dependName.c_str()); cmSystemTools::Error("Error can not open for write: ", dependName.c_str());
return; return;
} }
dependout << "# .o dependencies in this directory." << std::endl;
this->OutputObjectDepends(dependout); this->OutputObjectDepends(dependout);
} }
this->OutputCustomRules(fout); this->OutputCustomRules(fout);