diff options
author | Brad King <brad.king@kitware.com> | 2008-01-07 21:12:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-07 21:12:37 (GMT) |
commit | 52eb0ccac76b0f4066af11d9ed4537204633548a (patch) | |
tree | 78505b8e32417eaf945c8a2ca929a11f8c1644cc /Source/cmMakefileTargetGenerator.cxx | |
parent | 9f2790d3e7e5a1e8e564d7f670fe2ff8b28cf6e6 (diff) | |
download | CMake-52eb0ccac76b0f4066af11d9ed4537204633548a.zip CMake-52eb0ccac76b0f4066af11d9ed4537204633548a.tar.gz CMake-52eb0ccac76b0f4066af11d9ed4537204633548a.tar.bz2 |
BUG: Restore old interface of "make foo.o" and "make foo.i" even though object file names now include source extensions. For Java we also need to always remove the source extension (.java -> .class). This fixes the re-opening of bug #6169.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 0e9ccc5..6c3002e 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -310,10 +310,12 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(cmSourceFile& source) } // Get the full path name of the object file. + bool hasSourceExtension; std::string objNoTargetDir; std::string obj = this->LocalGenerator->GetObjectFileName(*this->Target, source, - &objNoTargetDir); + &objNoTargetDir, + &hasSourceExtension); // Avoid generating duplicate rules. if(this->ObjectFiles.find(obj) == this->ObjectFiles.end()) @@ -377,10 +379,12 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(cmSourceFile& source) { objNoTargetDir = cmSystemTools::GetFilenameName(objNoTargetDir); } - this->LocalGenerator->LocalObjectFiles[objNoTargetDir]. - push_back( - cmLocalUnixMakefileGenerator3::LocalObjectEntry(this->Target, lang) - ); + cmLocalUnixMakefileGenerator3::LocalObjectInfo& info = + this->LocalGenerator->LocalObjectFiles[objNoTargetDir]; + info.HasSourceExtension = hasSourceExtension; + info.push_back( + cmLocalUnixMakefileGenerator3::LocalObjectEntry(this->Target, lang) + ); } //---------------------------------------------------------------------------- |