From 06047d14bba66a43dade158cdb133d5106b07e92 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 11 Jun 2002 11:01:16 -0400 Subject: ENH: don't use short paths in the output --- Source/cmUnixMakefileGenerator.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 0767abb..0245038 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1356,6 +1356,7 @@ bool cmUnixMakefileGenerator::OutputObjectDepends(std::ostream& fout) // by the class cmMakeDepend GenerateMakefile void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout) { + std::set emittedShortPath; std::set emitted; // Iterate over every target. std::map& targets = m_Makefile->GetTargets(); @@ -1393,8 +1394,9 @@ void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout) { shortpath = dependfile; } - if(emitted.insert(shortpath).second) + if(emittedShortPath.insert(shortpath).second) { + emitted.insert(dependfile); fout << " \\\n" << dependfile ; } } -- cgit v0.12