summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 5632757..0767abb 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -1387,7 +1387,13 @@ void cmUnixMakefileGenerator::OutputCheckDepends(std::ostream& fout)
{
std::string dependfile =
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 ;
}