diff options
author | Brad King <brad.king@kitware.com> | 2018-01-29 10:20:47 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-29 10:51:22 -0500 |
commit | 79f22e84089e3f7a29cfea3275af6fafc5d3c091 (patch) | |
tree | 5f83790921f2ea838e6ffdf169392a0b56faccb2 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 92cd3d06772ada13935790d66927ab4663c7d628 (diff) | |
download | cmake-79f22e84089e3f7a29cfea3275af6fafc5d3c091.tar.gz |
Makefile,Ninja: De-duplicate ComputeObjectFilenames method
Move the method implementation up to `cmLocalCommonGenerator`
to avoid duplicating it in each generator.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index ff3fcfd31f..12682a7685 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -150,20 +150,6 @@ void cmLocalUnixMakefileGenerator3::ComputeHomeRelativeOutputPath() } } -void cmLocalUnixMakefileGenerator3::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 cmLocalUnixMakefileGenerator3::GetLocalObjectFiles( std::map<std::string, LocalObjectInfo>& localObjectFiles) { |