diff options
author | Brad King <brad.king@kitware.com> | 2012-03-06 19:42:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-03-08 12:58:52 (GMT) |
commit | 0996f2a228a834d75ba9845ea6b899b60eb84712 (patch) | |
tree | 7363840abe7de45d9ed96fc9fbbbc5794320dc10 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 67734be8cf4cb7fa1c29ec62a19ef04dd898a08c (diff) | |
download | CMake-0996f2a228a834d75ba9845ea6b899b60eb84712.zip CMake-0996f2a228a834d75ba9845ea6b899b60eb84712.tar.gz CMake-0996f2a228a834d75ba9845ea6b899b60eb84712.tar.bz2 |
Hide Makefile local object info inside local generator
Make cmLocalUnixMakefileGenerator3::LocalObjectInfo private and add
cmLocalUnixMakefileGenerator3::AddLocalObjectFile to create entries.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 5cc4e1c..d032a93 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -145,6 +145,20 @@ void cmLocalUnixMakefileGenerator3::Generate() } //---------------------------------------------------------------------------- +void cmLocalUnixMakefileGenerator3::AddLocalObjectFile( + cmTarget* target, cmSourceFile* sf, std::string objNoTargetDir, + bool hasSourceExtension) +{ + if(cmSystemTools::FileIsFullPath(objNoTargetDir.c_str())) + { + objNoTargetDir = cmSystemTools::GetFilenameName(objNoTargetDir); + } + LocalObjectInfo& info = this->LocalObjectFiles[objNoTargetDir]; + info.HasSourceExtension = hasSourceExtension; + info.push_back(LocalObjectEntry(target, sf->GetLanguage())); +} + +//---------------------------------------------------------------------------- void cmLocalUnixMakefileGenerator3::GetIndividualFileTargets (std::vector<std::string>& targets) { |