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

Method DoGenerate

Source/cmMakefile.cxx:1002–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000}
1001
1002void cmMakefile::DoGenerate(cmLocalGenerator& lg)
1003{
1004 // give all the commands a chance to do something
1005 // after the file has been parsed before generation
1006 for (auto& action : this->GeneratorActions) {
1007 action.Value(lg, action.Backtrace, GeneratorActionWhen::AfterConfigure);
1008 }
1009 this->GeneratorActionsInvoked = true;
1010
1011 // go through all configured files and see which ones still exist.
1012 // we don't want cmake to re-run if a configured file is created and deleted
1013 // during processing as that would make it a transient file that can't
1014 // influence the build process
1015 cm::erase_if(this->OutputFiles, file_not_persistent());
1016
1017 // if a configured file is used as input for another configured file,
1018 // and then deleted it will show up in the input list files so we
1019 // need to scan those too
1020 cm::erase_if(this->ListFiles, file_not_persistent());
1021}
1022
1023// Generate the output file
1024void cmMakefile::Generate(cmLocalGenerator& lg)

Callers 1

GenerateMethod · 0.95

Calls 3

erase_ifFunction · 0.85
file_not_persistentClass · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected