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

Method GetIndividualFileTargets

Source/cmLocalUnixMakefileGenerator3.cxx:254–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void cmLocalUnixMakefileGenerator3::GetIndividualFileTargets(
255 std::vector<std::string>& targets)
256{
257 std::map<std::string, LocalObjectInfo> localObjectFiles;
258 this->GetLocalObjectFiles(localObjectFiles);
259 for (auto const& localObjectFile : localObjectFiles) {
260 targets.push_back(localObjectFile.first);
261
262 std::string::size_type dot_pos = localObjectFile.first.rfind('.');
263 std::string base = localObjectFile.first.substr(0, dot_pos);
264 if (localObjectFile.second.HasPreprocessRule) {
265 targets.push_back(base + ".i");
266 }
267
268 if (localObjectFile.second.HasAssembleRule) {
269 targets.push_back(base + ".s");
270 }
271 }
272}
273
274std::string cmLocalUnixMakefileGenerator3::GetLinkDependencyFile(
275 cmGeneratorTarget* target, std::string const& /*config*/) const

Callers 2

CreateCProjectFileMethod · 0.45
WriteTargetsMethod · 0.45

Calls 4

GetLocalObjectFilesMethod · 0.95
push_backMethod · 0.80
rfindMethod · 0.80
substrMethod · 0.45

Tested by

no test coverage detected