summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-29 15:20:47 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-29 15:51:22 (GMT)
commit79f22e84089e3f7a29cfea3275af6fafc5d3c091 (patch)
tree5f83790921f2ea838e6ffdf169392a0b56faccb2 /Source/cmLocalNinjaGenerator.cxx
parent92cd3d06772ada13935790d66927ab4663c7d628 (diff)
downloadCMake-79f22e84089e3f7a29cfea3275af6fafc5d3c091.zip
CMake-79f22e84089e3f7a29cfea3275af6fafc5d3c091.tar.gz
CMake-79f22e84089e3f7a29cfea3275af6fafc5d3c091.tar.bz2
Makefile,Ninja: De-duplicate ComputeObjectFilenames method
Move the method implementation up to `cmLocalCommonGenerator` to avoid duplicating it in each generator.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 2d969d2..8c889fc 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -246,20 +246,6 @@ void cmLocalNinjaGenerator::WriteNinjaFilesInclusion(std::ostream& os)
os << "\n";
}
-void cmLocalNinjaGenerator::ComputeObjectFilenames(
- std::map<cmSourceFile const*, std::string>& mapping,
- cmGeneratorTarget const* gt)
-{
- // Determine if these object files should use a custom extension
- char const* custom_ext = gt->GetCustomObjectExtension();
- for (auto& si : mapping) {
- cmSourceFile const* sf = si.first;
- bool keptSourceExtension;
- si.second = this->GetObjectFileNameWithoutTarget(
- *sf, gt->ObjectDirectory, &keptSourceExtension, custom_ext);
- }
-}
-
void cmLocalNinjaGenerator::WriteProcessedMakefile(std::ostream& os)
{
cmGlobalNinjaGenerator::WriteDivider(os);