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

Method ProcessEvaluationFiles

Source/cmLocalGenerator.cxx:432–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432void cmLocalGenerator::ProcessEvaluationFiles(
433 std::vector<std::string>& generatedFiles)
434{
435 for (auto const& geef : this->Makefile->GetEvaluationFiles()) {
436 geef->Generate(this);
437 if (cmSystemTools::GetFatalErrorOccurred()) {
438 return;
439 }
440 std::vector<std::string> files = geef->GetFiles();
441 std::sort(files.begin(), files.end());
442
443 std::vector<std::string> intersection;
444 std::set_intersection(files.begin(), files.end(), generatedFiles.begin(),
445 generatedFiles.end(),
446 std::back_inserter(intersection));
447 if (!intersection.empty()) {
448 cmSystemTools::Error("Files to be generated by multiple different "
449 "commands: " +
450 cmWrap('"', intersection, '"', " "));
451 return;
452 }
453
454 cm::append(generatedFiles, files);
455 std::inplace_merge(generatedFiles.begin(),
456 generatedFiles.end() - files.size(),
457 generatedFiles.end());
458 }
459}
460
461void cmLocalGenerator::GenerateInstallRules()
462{

Callers

nothing calls this directly

Calls 9

cmWrapFunction · 0.85
appendFunction · 0.85
ErrorClass · 0.70
GenerateMethod · 0.45
GetFilesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected