summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-06-11 15:01:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-06-11 15:01:16 (GMT)
commit06047d14bba66a43dade158cdb133d5106b07e92 (patch)
tree3f15e075edf57671b898a49eed299efa0aa20ff8
parent8f89fe11c7e87a4a95823c5c07f1ec92dc9bf5fd (diff)
downloadCMake-06047d14bba66a43dade158cdb133d5106b07e92.zip
CMake-06047d14bba66a43dade158cdb133d5106b07e92.tar.gz
CMake-06047d14bba66a43dade158cdb133d5106b07e92.tar.bz2
ENH: don't use short paths in the output
-rw-r--r--Source/cmUnixMakefileGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
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<std::string> emittedShortPath;
std::set<std::string> emitted;
// Iterate over every target.
std::map<cmStdString, cmTarget>& 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 ;
}
}