ENH: handle empty variables

This commit is contained in:
Bill Hoffman 2006-05-05 21:45:26 -04:00
parent bc135b7fc2
commit 51a84aaa57
1 changed files with 4 additions and 0 deletions

View File

@ -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);