Revert "Honor RULE_MESSAGES property for build target messages" (#12190)
This reverts commit dc36b34994
. It broke
dependency logic instead of only silencing messages. Revert to previous
behavior.
This commit is contained in:
parent
dc36b34994
commit
051cee0096
|
@ -25,7 +25,6 @@ cmGlobalUnixMakefileGenerator3::cmGlobalUnixMakefileGenerator3()
|
||||||
this->FindMakeProgramFile = "CMakeUnixFindMake.cmake";
|
this->FindMakeProgramFile = "CMakeUnixFindMake.cmake";
|
||||||
this->ToolSupportsColor = true;
|
this->ToolSupportsColor = true;
|
||||||
this->ForceVerboseMakefiles = false;
|
this->ForceVerboseMakefiles = false;
|
||||||
this->NoRuleMessages = false;
|
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__VMS)
|
#if defined(_WIN32) || defined(__VMS)
|
||||||
this->UseLinkScript = false;
|
this->UseLinkScript = false;
|
||||||
|
@ -145,14 +144,6 @@ void cmGlobalUnixMakefileGenerator3::Generate()
|
||||||
// first do superclass method
|
// first do superclass method
|
||||||
this->cmGlobalGenerator::Generate();
|
this->cmGlobalGenerator::Generate();
|
||||||
|
|
||||||
cmake* cm = this->GetCMakeInstance();
|
|
||||||
if(const char* ruleStatus = cm->GetProperty("RULE_MESSAGES"))
|
|
||||||
{
|
|
||||||
this->NoRuleMessages = cmSystemTools::IsOff(ruleStatus);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!this->NoRuleMessages)
|
|
||||||
{
|
|
||||||
// initialize progress
|
// initialize progress
|
||||||
unsigned long total = 0;
|
unsigned long total = 0;
|
||||||
for(ProgressMapType::const_iterator pmi = this->ProgressMap.begin();
|
for(ProgressMapType::const_iterator pmi = this->ProgressMap.begin();
|
||||||
|
@ -185,7 +176,6 @@ void cmGlobalUnixMakefileGenerator3::Generate()
|
||||||
cmGeneratedFileStream markFile(markFileName.c_str());
|
cmGeneratedFileStream markFile(markFileName.c_str());
|
||||||
markFile << this->CountProgressMarksInAll(lg) << "\n";
|
markFile << this->CountProgressMarksInAll(lg) << "\n";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// write the main makefile
|
// write the main makefile
|
||||||
this->WriteMainMakefile2();
|
this->WriteMainMakefile2();
|
||||||
|
@ -748,11 +738,8 @@ cmGlobalUnixMakefileGenerator3
|
||||||
// Write the rule.
|
// Write the rule.
|
||||||
localName += "/all";
|
localName += "/all";
|
||||||
depends.clear();
|
depends.clear();
|
||||||
std::string progressDir;
|
|
||||||
|
|
||||||
if(!this->NoRuleMessages)
|
std::string progressDir =
|
||||||
{
|
|
||||||
progressDir =
|
|
||||||
lg->GetMakefile()->GetHomeOutputDirectory();
|
lg->GetMakefile()->GetHomeOutputDirectory();
|
||||||
progressDir += cmake::GetCMakeFilesDirectory();
|
progressDir += cmake::GetCMakeFilesDirectory();
|
||||||
{
|
{
|
||||||
|
@ -775,7 +762,6 @@ cmGlobalUnixMakefileGenerator3
|
||||||
progressDir = "Built target ";
|
progressDir = "Built target ";
|
||||||
progressDir += t->first;
|
progressDir += t->first;
|
||||||
lg->AppendEcho(commands,progressDir.c_str());
|
lg->AppendEcho(commands,progressDir.c_str());
|
||||||
}
|
|
||||||
|
|
||||||
this->AppendGlobalTargetDepends(depends,t->second);
|
this->AppendGlobalTargetDepends(depends,t->second);
|
||||||
lg->WriteMakeRule(ruleFileStream, "All Build rule for target.",
|
lg->WriteMakeRule(ruleFileStream, "All Build rule for target.",
|
||||||
|
@ -791,8 +777,6 @@ cmGlobalUnixMakefileGenerator3
|
||||||
"all", depends, commands, true);
|
"all", depends, commands, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this->NoRuleMessages)
|
|
||||||
{
|
|
||||||
// Write the rule.
|
// Write the rule.
|
||||||
commands.clear();
|
commands.clear();
|
||||||
progressDir = lg->GetMakefile()->GetHomeOutputDirectory();
|
progressDir = lg->GetMakefile()->GetHomeOutputDirectory();
|
||||||
|
@ -812,12 +796,10 @@ cmGlobalUnixMakefileGenerator3
|
||||||
<< this->CountProgressMarksInTarget(&t->second, emitted);
|
<< this->CountProgressMarksInTarget(&t->second, emitted);
|
||||||
commands.push_back(progCmd.str());
|
commands.push_back(progCmd.str());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
std::string tmp = cmake::GetCMakeFilesDirectoryPostSlash();
|
std::string tmp = cmake::GetCMakeFilesDirectoryPostSlash();
|
||||||
tmp += "Makefile2";
|
tmp += "Makefile2";
|
||||||
commands.push_back(lg->GetRecursiveMakeCall
|
commands.push_back(lg->GetRecursiveMakeCall
|
||||||
(tmp.c_str(),localName.c_str()));
|
(tmp.c_str(),localName.c_str()));
|
||||||
if(!this->NoRuleMessages)
|
|
||||||
{
|
{
|
||||||
cmOStringStream progCmd;
|
cmOStringStream progCmd;
|
||||||
progCmd << "$(CMAKE_COMMAND) -E cmake_progress_start "; // # 0
|
progCmd << "$(CMAKE_COMMAND) -E cmake_progress_start "; // # 0
|
||||||
|
|
|
@ -170,7 +170,6 @@ protected:
|
||||||
std::string EmptyRuleHackCommand;
|
std::string EmptyRuleHackCommand;
|
||||||
|
|
||||||
bool ForceVerboseMakefiles;
|
bool ForceVerboseMakefiles;
|
||||||
bool NoRuleMessages;
|
|
||||||
|
|
||||||
// Store per-target progress counters.
|
// Store per-target progress counters.
|
||||||
struct TargetProgress
|
struct TargetProgress
|
||||||
|
|
Loading…
Reference in New Issue