cmMakefile: Rename method to something more appropriate.
Allow the name to be used for something more-suitable.
This commit is contained in:
parent
2dd5d42f52
commit
8ab1cce704
|
@ -4362,7 +4362,7 @@ void cmMakefile::AddCMakeDependFilesFromUser()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmMakefile::GetListFileStack() const
|
std::string cmMakefile::FormatListFileStack() const
|
||||||
{
|
{
|
||||||
std::ostringstream tmp;
|
std::ostringstream tmp;
|
||||||
size_t depth = this->ListFileStack.size();
|
size_t depth = this->ListFileStack.size();
|
||||||
|
|
|
@ -575,7 +575,7 @@ public:
|
||||||
{ this->ListFiles.push_back(file);}
|
{ this->ListFiles.push_back(file);}
|
||||||
void AddCMakeDependFilesFromUser();
|
void AddCMakeDependFilesFromUser();
|
||||||
|
|
||||||
std::string GetListFileStack() const;
|
std::string FormatListFileStack() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current context backtrace.
|
* Get the current context backtrace.
|
||||||
|
|
|
@ -375,7 +375,7 @@ void cmTryRunCommand::DoNotRunExecutable(const std::string& runArgs,
|
||||||
comment += "Run arguments : ";
|
comment += "Run arguments : ";
|
||||||
comment += runArgs;
|
comment += runArgs;
|
||||||
comment += "\n";
|
comment += "\n";
|
||||||
comment += " Called from: " + this->Makefile->GetListFileStack();
|
comment += " Called from: " + this->Makefile->FormatListFileStack();
|
||||||
cmsys::SystemTools::ReplaceString(comment, "\n", "\n# ");
|
cmsys::SystemTools::ReplaceString(comment, "\n", "\n# ");
|
||||||
file << comment << "\n\n";
|
file << comment << "\n\n";
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ static std::string cmakemainGetStack(void *clientdata)
|
||||||
cmMakefile* mf=cmakemainGetMakefile(clientdata);
|
cmMakefile* mf=cmakemainGetMakefile(clientdata);
|
||||||
if (mf)
|
if (mf)
|
||||||
{
|
{
|
||||||
msg = mf->GetListFileStack();
|
msg = mf->FormatListFileStack();
|
||||||
if (!msg.empty())
|
if (!msg.empty())
|
||||||
{
|
{
|
||||||
msg = "\n Called from: " + msg;
|
msg = "\n Called from: " + msg;
|
||||||
|
|
Loading…
Reference in New Issue