summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-15 16:00:27 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-15 16:00:27 (GMT)
commitc6f1a11480f478b430fcb798ddeac972ec17ae6a (patch)
treea9e71d302bcb44201b223dee7528fcfb726662b9 /Source/cmLocalUnixMakefileGenerator3.h
parent7169980b59c16370fa5abec8159afc5cc84a96cd (diff)
downloadCMake-c6f1a11480f478b430fcb798ddeac972ec17ae6a.zip
CMake-c6f1a11480f478b430fcb798ddeac972ec17ae6a.tar.gz
CMake-c6f1a11480f478b430fcb798ddeac972ec17ae6a.tar.bz2
BUG: Added object language to list of object files in a local generator's directory. Fixed generation of preprocessing and assembly rules to be done only for C and C++ objects.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index 89bb642..9bb2ab7 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -202,7 +202,16 @@ public:
// write the target rules for the local Makefile into the stream
void WriteLocalAllRules(std::ostream& ruleFileStream);
- std::map<cmStdString,std::vector<cmTarget *> > GetLocalObjectFiles()
+ struct LocalObjectEntry
+ {
+ cmTarget* Target;
+ std::string Language;
+ LocalObjectEntry(): Target(0), Language() {}
+ LocalObjectEntry(cmTarget* t, const char* lang):
+ Target(t), Language(lang) {}
+ };
+ class LocalObjectInfo: public std::vector<LocalObjectEntry> {};
+ std::map<cmStdString, LocalObjectInfo> const& GetLocalObjectFiles()
{ return this->LocalObjectFiles;}
// return info about progress actions
@@ -276,7 +285,7 @@ protected:
const std::vector<std::string>& objects);
void WriteObjectConvenienceRule(std::ostream& ruleFileStream,
const char* comment, const char* output,
- std::vector<cmTarget*>& targets);
+ LocalObjectInfo const& targets);
std::string GetObjectFileName(cmTarget& target,
const cmSourceFile& source,
@@ -336,7 +345,7 @@ private:
bool SkipPreprocessedSourceRules;
bool SkipAssemblySourceRules;
- std::map<cmStdString,std::vector<cmTarget *> > LocalObjectFiles;
+ std::map<cmStdString, LocalObjectInfo> LocalObjectFiles;
/* does the work for each target */
std::vector<cmMakefileTargetGenerator *> TargetGenerators;