MCPcopy Create free account
hub / github.com/Kitware/CMake / ComputeObjectFilenames

Method ComputeObjectFilenames

Source/cmLocalCommonGenerator.cxx:118–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void cmLocalCommonGenerator::ComputeObjectFilenames(
119 std::map<cmSourceFile const*, cmObjectLocations>& mapping,
120 std::string const& config, cmGeneratorTarget const* gt)
121{
122 // Determine if these object files should use a custom extension
123 char const* custom_ext = gt->GetCustomObjectExtension();
124 for (auto& si : mapping) {
125 cmSourceFile const* sf = si.first;
126 bool keptSourceExtension;
127 bool force = true;
128 si.second.ShortLoc.emplace(this->GetObjectFileNameWithoutTarget(
129 *sf, gt->ObjectDirectory, &keptSourceExtension, custom_ext, &force));
130 force = false;
131 si.second.LongLoc.Update(this->GetObjectFileNameWithoutTarget(
132 *sf, gt->ObjectDirectory, &keptSourceExtension, custom_ext, &force));
133 this->FillCustomInstallObjectLocations(*sf, config, custom_ext,
134 si.second.InstallLongLoc);
135 }
136}

Callers

nothing calls this directly

Calls 5

emplaceMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected