use short path to get unique path names for depend path output
This commit is contained in:
parent
20308ac96a
commit
8f89fe11c7
@ -1387,7 +1387,13 @@ void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
|
|||||||
{
|
{
|
||||||
std::string dependfile =
|
std::string dependfile =
|
||||||
this->ConvertToOutputPath(cmSystemTools::CollapseFullPath(dep->c_str()).c_str());
|
this->ConvertToOutputPath(cmSystemTools::CollapseFullPath(dep->c_str()).c_str());
|
||||||
if(emitted.insert(dependfile).second)
|
// use the short path function to create uniqe names
|
||||||
|
std::string shortpath;
|
||||||
|
if(!cmSystemTools::GetShortPath(dependfile.c_str(), shortpath))
|
||||||
|
{
|
||||||
|
shortpath = dependfile;
|
||||||
|
}
|
||||||
|
if(emitted.insert(shortpath).second)
|
||||||
{
|
{
|
||||||
fout << " \\\n" << dependfile ;
|
fout << " \\\n" << dependfile ;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user