ENH: handle empty lists correctly

This commit is contained in:
Bill Hoffman 2008-04-23 09:56:54 -04:00
parent 464a6cbf34
commit 4801fb841f
1 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,11 @@ bool cmListCommand::GetList(std::vector<std::string>& list, const char* var)
{
return false;
}
// if the size of the list
if(listString.size() == 0)
{
return true;
}
// expand the variable into a list
cmSystemTools::ExpandListArgument(listString, list, true);
// check the list for empty values