summaryrefslogtreecommitdiffstats
path: root/Source/cmCommandArgumentParserHelper.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-04 17:45:12 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-06 07:15:56 (GMT)
commit0f2a132437d7a553e20cc0427279c212b428e55d (patch)
tree0056ca6ac2aa895c96f175953b7d3ceafeafa26d /Source/cmCommandArgumentParserHelper.cxx
parent4d8b79ad7e132ff876d131526a03a21c4f424f33 (diff)
downloadCMake-0f2a132437d7a553e20cc0427279c212b428e55d.zip
CMake-0f2a132437d7a553e20cc0427279c212b428e55d.tar.gz
CMake-0f2a132437d7a553e20cc0427279c212b428e55d.tar.bz2
cmCommandArgumentParserHelper: Port to cmOutputConverter.
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.cxx')
-rw-r--r--Source/cmCommandArgumentParserHelper.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx
index bd098a5..14e9e56 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 << "\'";