cmMakefile: Use cmOutputConverter instead of cmLocalGenerator.
This commit is contained in:
parent
ccf7760f00
commit
cfae7fa408
|
@ -264,8 +264,8 @@ void cmMakefile::IssueMessage(cmake::MessageType t,
|
|||
|
||||
if(!this->GetCMakeInstance()->GetIsInTryCompile())
|
||||
{
|
||||
lfc.FilePath = this->LocalGenerator->Convert(lfc.FilePath,
|
||||
cmLocalGenerator::HOME);
|
||||
cmOutputConverter converter(this->StateSnapshot);
|
||||
lfc.FilePath = converter.Convert(lfc.FilePath, cmOutputConverter::HOME);
|
||||
}
|
||||
lfc.Line = 0;
|
||||
this->GetCMakeInstance()->IssueMessage(t, text, lfc);
|
||||
|
@ -1963,8 +1963,8 @@ void cmMakefile::LogUnused(const char* reason,
|
|||
lfc.FilePath = path;
|
||||
lfc.Line = 0;
|
||||
}
|
||||
lfc.FilePath = this->LocalGenerator->Convert(lfc.FilePath,
|
||||
cmLocalGenerator::HOME);
|
||||
cmOutputConverter converter(this->StateSnapshot);
|
||||
lfc.FilePath = converter.Convert(lfc.FilePath, cmOutputConverter::HOME);
|
||||
|
||||
if (this->CheckSystemVars ||
|
||||
cmSystemTools::IsSubDirectory(path,
|
||||
|
@ -2861,8 +2861,9 @@ cmake::MessageType cmMakefile::ExpandVariablesInStringNew(
|
|||
{
|
||||
std::ostringstream msg;
|
||||
cmListFileContext lfc;
|
||||
lfc.FilePath = this->LocalGenerator
|
||||
->Convert(filename, cmLocalGenerator::HOME);
|
||||
cmOutputConverter converter(this->StateSnapshot);
|
||||
lfc.FilePath =
|
||||
converter.Convert(filename, cmOutputConverter::HOME);
|
||||
lfc.Line = line;
|
||||
msg << "uninitialized variable \'" << lookup << "\'";
|
||||
this->GetCMakeInstance()->IssueMessage(cmake::AUTHOR_WARNING,
|
||||
|
|
Loading…
Reference in New Issue