summaryrefslogtreecommitdiffstats
path: root/Source/cmCommandArgumentParserHelper.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-04 18:37:42 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-04 18:37:42 (GMT)
commit523075ded543cbb7044bc4b56203d329aff0cb42 (patch)
treeb437035f021967f257018e4199291c5f0983aabf /Source/cmCommandArgumentParserHelper.cxx
parent430f6f35ebfd237e6f33afee21308bfc28a7a553 (diff)
downloadCMake-523075ded543cbb7044bc4b56203d329aff0cb42.zip
CMake-523075ded543cbb7044bc4b56203d329aff0cb42.tar.gz
CMake-523075ded543cbb7044bc4b56203d329aff0cb42.tar.bz2
BUG: Do not replace @VAR@ syntax in list files. This addresses bug #2722.
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.cxx')
-rw-r--r--Source/cmCommandArgumentParserHelper.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx
index 4b08734..d446e15 100644
--- a/Source/cmCommandArgumentParserHelper.cxx
+++ b/Source/cmCommandArgumentParserHelper.cxx
@@ -37,6 +37,7 @@ cmCommandArgumentParserHelper::cmCommandArgumentParserHelper()
strcpy(this->BSLASHVariable, "\\");
this->NoEscapeMode = false;
+ this->ReplaceAtSyntax = false;
}
@@ -115,6 +116,21 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var)
return this->AddString(value);
}
+char* cmCommandArgumentParserHelper::ExpandVariableForAt(const char* var)
+{
+ if(this->ReplaceAtSyntax)
+ {
+ return this->ExpandVariable(var);
+ }
+ else
+ {
+ std::string ref = "@";
+ ref += var;
+ ref += "@";
+ return this->AddString(ref.c_str());
+ }
+}
+
char* cmCommandArgumentParserHelper::CombineUnions(char* in1, char* in2)
{
if ( !in1 )