mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 00:02:21 +08:00
Ninja: Factor metadata cleanup into dedicated method
This commit is contained in:
@@ -528,6 +528,11 @@ void cmGlobalNinjaGenerator::Generate()
|
||||
this->CloseRulesFileStream();
|
||||
this->CloseBuildFileStreams();
|
||||
|
||||
this->CleanMetaData();
|
||||
}
|
||||
|
||||
void cmGlobalNinjaGenerator::CleanMetaData()
|
||||
{
|
||||
auto run_ninja_tool = [this](std::vector<char const*> const& args) {
|
||||
std::vector<std::string> command;
|
||||
command.push_back(this->NinjaCommand);
|
||||
|
@@ -438,6 +438,7 @@ private:
|
||||
|
||||
bool OpenRulesFileStream();
|
||||
void CloseRulesFileStream();
|
||||
void CleanMetaData();
|
||||
|
||||
/// Write the common disclaimer text at the top of each build file.
|
||||
void WriteDisclaimer(std::ostream& os);
|
||||
|
Reference in New Issue
Block a user