diff options
author | Brad King <brad.king@kitware.com> | 2006-10-04 18:37:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-04 18:37:42 (GMT) |
commit | 523075ded543cbb7044bc4b56203d329aff0cb42 (patch) | |
tree | b437035f021967f257018e4199291c5f0983aabf /Source/cmCommandArgumentParserHelper.cxx | |
parent | 430f6f35ebfd237e6f33afee21308bfc28a7a553 (diff) | |
download | CMake-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.cxx | 16 |
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 ) |