diff options
author | Brad King <brad.king@kitware.com> | 2006-08-15 16:00:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-15 16:00:27 (GMT) |
commit | c6f1a11480f478b430fcb798ddeac972ec17ae6a (patch) | |
tree | a9e71d302bcb44201b223dee7528fcfb726662b9 /Source/cmLocalUnixMakefileGenerator3.h | |
parent | 7169980b59c16370fa5abec8159afc5cc84a96cd (diff) | |
download | CMake-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.h | 15 |
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; |