summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-07 21:12:37 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-07 21:12:37 (GMT)
commit52eb0ccac76b0f4066af11d9ed4537204633548a (patch)
tree78505b8e32417eaf945c8a2ca929a11f8c1644cc /Source/cmLocalUnixMakefileGenerator3.h
parent9f2790d3e7e5a1e8e564d7f670fe2ff8b28cf6e6 (diff)
downloadCMake-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/cmLocalUnixMakefileGenerator3.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index c41d0d8..c6fcb99 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -238,7 +238,10 @@ public:
LocalObjectEntry(cmTarget* t, const char* lang):
Target(t), Language(lang) {}
};
- class LocalObjectInfo: public std::vector<LocalObjectEntry> {};
+ struct LocalObjectInfo: public std::vector<LocalObjectEntry>
+ {
+ bool HasSourceExtension;
+ };
std::map<cmStdString, LocalObjectInfo> const& GetLocalObjectFiles()
{ return this->LocalObjectFiles;}
@@ -299,11 +302,12 @@ protected:
const std::vector<std::string>& objects);
void WriteObjectConvenienceRule(std::ostream& ruleFileStream,
const char* comment, const char* output,
- LocalObjectInfo const& targets);
+ LocalObjectInfo const& info);
std::string GetObjectFileName(cmTarget& target,
const cmSourceFile& source,
- std::string* nameWithoutTargetDir = 0);
+ std::string* nameWithoutTargetDir = 0,
+ bool* hasSourceExtension = 0);
void AppendRuleDepend(std::vector<std::string>& depends,
const char* ruleFileName);