diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-15 13:42:34 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-15 13:42:34 (GMT) |
commit | 1406eae1ba66bea1028fc1ba0ca9f496ba2229cf (patch) | |
tree | c9be6aedc2cd08987922d2430b73d2e898058361 | |
parent | 94f82edd07693f2a47f473ebc4cad7293559a600 (diff) | |
download | CMake-1406eae1ba66bea1028fc1ba0ca9f496ba2229cf.zip CMake-1406eae1ba66bea1028fc1ba0ca9f496ba2229cf.tar.gz CMake-1406eae1ba66bea1028fc1ba0ca9f496ba2229cf.tar.bz2 |
BUG: avoid .cxx.o names...
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 584dba8..75319b3 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1527,9 +1527,10 @@ void cmUnixMakefileGenerator::OutputSourceObjectBuildRules(std::ostream& fout) sourceName = source->GetFullPath(); shortName = cmSystemTools::GetFilenameName(source->GetSourceName()); } - shortName += source->GetSourceExtension(); + std::string shortNameWithExt = shortName + + source->GetSourceExtension(); // Only output a rule for each .o once. - if(rules.find(shortName) == rules.end()) + if(rules.find(shortNameWithExt) == rules.end()) { this->OutputBuildObjectFromSource(fout, shortName.c_str(), |