diff options
author | Brad King <brad.king@kitware.com> | 2018-01-29 15:20:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-29 15:51:22 (GMT) |
commit | 79f22e84089e3f7a29cfea3275af6fafc5d3c091 (patch) | |
tree | 5f83790921f2ea838e6ffdf169392a0b56faccb2 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 92cd3d06772ada13935790d66927ab4663c7d628 (diff) | |
download | CMake-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/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 ff3fcfd..12682a7 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) { |