diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-04 19:45:12 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-06-06 09:15:56 +0200 |
commit | 0f2a132437d7a553e20cc0427279c212b428e55d (patch) | |
tree | 0056ca6ac2aa895c96f175953b7d3ceafeafa26d /Source/cmCommandArgumentParserHelper.cxx | |
parent | 4d8b79ad7e132ff876d131526a03a21c4f424f33 (diff) | |
download | cmake-0f2a132437d7a553e20cc0427279c212b428e55d.tar.gz |
cmCommandArgumentParserHelper: Port to cmOutputConverter.
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.cxx')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx index bd098a5f5f..14e9e5661f 100644 --- a/Source/cmCommandArgumentParserHelper.cxx +++ b/Source/cmCommandArgumentParserHelper.cxx @@ -14,7 +14,7 @@ #include "cmSystemTools.h" #include "cmMakefile.h" #include "cmState.h" -#include "cmLocalGenerator.h" +#include "cmOutputConverter.h" #include "cmCommandArgumentLexer.h" @@ -141,8 +141,9 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var) { std::ostringstream msg; cmListFileContext lfc; - lfc.FilePath = this->Makefile->GetLocalGenerator() - ->Convert(this->FileName, cmLocalGenerator::HOME); + cmOutputConverter converter(this->Makefile->GetStateSnapshot()); + lfc.FilePath = converter.Convert(this->FileName, + cmOutputConverter::HOME); lfc.Line = this->FileLine; msg << "uninitialized variable \'" << var << "\'"; |