diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-06-11 14:43:40 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-06-11 14:43:40 (GMT) |
commit | 8f89fe11c7e87a4a95823c5c07f1ec92dc9bf5fd (patch) | |
tree | 104363d1c50e0cea3b7a221927bd82508df53f22 /Source/cmUnixMakefileGenerator.cxx | |
parent | 20308ac96a63523282ad02a9b073eb37512e1fdd (diff) | |
download | CMake-8f89fe11c7e87a4a95823c5c07f1ec92dc9bf5fd.zip CMake-8f89fe11c7e87a4a95823c5c07f1ec92dc9bf5fd.tar.gz CMake-8f89fe11c7e87a4a95823c5c07f1ec92dc9bf5fd.tar.bz2 |
use short path to get unique path names for depend path output
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 8 |
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 ; } |