cmCommandArgumentParserHelper: Port to cmOutputConverter.

This commit is contained in:
Stephen Kelly 2015-06-04 19:45:12 +02:00
parent 4d8b79ad7e
commit 0f2a132437
1 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmState.h" #include "cmState.h"
#include "cmLocalGenerator.h" #include "cmOutputConverter.h"
#include "cmCommandArgumentLexer.h" #include "cmCommandArgumentLexer.h"
@ -141,8 +141,9 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var)
{ {
std::ostringstream msg; std::ostringstream msg;
cmListFileContext lfc; cmListFileContext lfc;
lfc.FilePath = this->Makefile->GetLocalGenerator() cmOutputConverter converter(this->Makefile->GetStateSnapshot());
->Convert(this->FileName, cmLocalGenerator::HOME); lfc.FilePath = converter.Convert(this->FileName,
cmOutputConverter::HOME);
lfc.Line = this->FileLine; lfc.Line = this->FileLine;
msg << "uninitialized variable \'" << var << "\'"; msg << "uninitialized variable \'" << var << "\'";