mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
BUG: Do not replace @VAR@ syntax in list files. This addresses bug #2722.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user