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/cmMakefileTargetGenerator.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/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index a3a832b..d33861c 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -489,16 +489,8 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(cmSourceFile& source) srcFullPath.c_str()); // add this to the list of objects for this local generator - if(cmSystemTools::FileIsFullPath(objNoTargetDir.c_str())) - { - objNoTargetDir = cmSystemTools::GetFilenameName(objNoTargetDir); - } - cmLocalUnixMakefileGenerator3::LocalObjectInfo& info = - this->LocalGenerator->LocalObjectFiles[objNoTargetDir]; - info.HasSourceExtension = hasSourceExtension; - info.push_back( - cmLocalUnixMakefileGenerator3::LocalObjectEntry(this->Target, lang) - ); + this->LocalGenerator->AddLocalObjectFile( + this->Target, &source, objNoTargetDir, hasSourceExtension); } //---------------------------------------------------------------------------- |