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)
|
cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg, cmMakefile* makefile)
|
||||||
: cmOutputConverter(makefile->GetStateSnapshot())
|
: cmOutputConverter(makefile->GetStateSnapshot())
|
||||||
, StateSnapshot(makefile->GetStateSnapshot())
|
, StateSnapshot(makefile->GetStateSnapshot())
|
||||||
|
, DirectoryBacktrace(makefile->GetBacktrace())
|
||||||
{
|
{
|
||||||
this->GlobalGenerator = gg;
|
this->GlobalGenerator = gg;
|
||||||
|
|
||||||
@ -68,7 +69,7 @@ cmLocalGenerator::~cmLocalGenerator()
|
|||||||
void cmLocalGenerator::IssueMessage(cmake::MessageType t,
|
void cmLocalGenerator::IssueMessage(cmake::MessageType t,
|
||||||
std::string const& text) const
|
std::string const& text) const
|
||||||
{
|
{
|
||||||
this->Makefile->IssueMessage(t, text);
|
this->GetCMakeInstance()->IssueMessage(t, text, this->DirectoryBacktrace);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmLocalGenerator::ComputeObjectMaxPath()
|
void cmLocalGenerator::ComputeObjectMaxPath()
|
||||||
|
@ -368,6 +368,7 @@ protected:
|
|||||||
|
|
||||||
cmMakefile* Makefile;
|
cmMakefile* Makefile;
|
||||||
cmState::Snapshot StateSnapshot;
|
cmState::Snapshot StateSnapshot;
|
||||||
|
cmListFileBacktrace DirectoryBacktrace;
|
||||||
cmGlobalGenerator* GlobalGenerator;
|
cmGlobalGenerator* GlobalGenerator;
|
||||||
std::map<std::string, std::string> UniqueObjectNamesMap;
|
std::map<std::string, std::string> UniqueObjectNamesMap;
|
||||||
std::string::size_type ObjectPathMax;
|
std::string::size_type ObjectPathMax;
|
||||||
|
Loading…
Reference in New Issue
Block a user