cmLocalGenerator: Store Backtrace for the directory
Don't rely on cmMakefile to provide that. Use it to issue messages.
This commit is contained in:
parent
acf0c0f444
commit
096c7754b3
|
@ -45,6 +45,7 @@
|
|||
cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg, cmMakefile* makefile)
|
||||
: cmOutputConverter(makefile->GetStateSnapshot())
|
||||
, StateSnapshot(makefile->GetStateSnapshot())
|
||||
, DirectoryBacktrace(makefile->GetBacktrace())
|
||||
{
|
||||
this->GlobalGenerator = gg;
|
||||
|
||||
|
@ -68,7 +69,7 @@ cmLocalGenerator::~cmLocalGenerator()
|
|||
void cmLocalGenerator::IssueMessage(cmake::MessageType t,
|
||||
std::string const& text) const
|
||||
{
|
||||
this->Makefile->IssueMessage(t, text);
|
||||
this->GetCMakeInstance()->IssueMessage(t, text, this->DirectoryBacktrace);
|
||||
}
|
||||
|
||||
void cmLocalGenerator::ComputeObjectMaxPath()
|
||||
|
|
|
@ -368,6 +368,7 @@ protected:
|
|||
|
||||
cmMakefile* Makefile;
|
||||
cmState::Snapshot StateSnapshot;
|
||||
cmListFileBacktrace DirectoryBacktrace;
|
||||
cmGlobalGenerator* GlobalGenerator;
|
||||
std::map<std::string, std::string> UniqueObjectNamesMap;
|
||||
std::string::size_type ObjectPathMax;
|
||||
|
|
Loading…
Reference in New Issue