ENH: handle empty variables
This commit is contained in:
parent
bc135b7fc2
commit
51a84aaa57
|
@ -91,6 +91,10 @@ char* cmCommandArgumentParserHelper::ExpandSpecialVariable(const char* key, cons
|
|||
|
||||
char* cmCommandArgumentParserHelper::ExpandVariable(const char* var)
|
||||
{
|
||||
if(!var)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if(this->FileName && strcmp(var, "CMAKE_CURRENT_LIST_FILE") == 0)
|
||||
{
|
||||
return this->AddString(this->FileName);
|
||||
|
|
Loading…
Reference in New Issue