From 8f89fe11c7e87a4a95823c5c07f1ec92dc9bf5fd Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 11 Jun 2002 10:43:40 -0400 Subject: [PATCH] use short path to get unique path names for depend path output --- Source/cmUnixMakefileGenerator.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 5632757af..0767abb35 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 ; }