ENH: don't use short paths in the output
This commit is contained in:
parent
8f89fe11c7
commit
06047d14bb
|
@ -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 ;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue