summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-23 13:56:54 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-23 13:56:54 (GMT)
commit4801fb841f31b6358ee9654c5f85ce3a8be0cd87 (patch)
tree106be53cc5f4acc71d1323f8a4221f68800196a8 /Source/cmListCommand.cxx
parent464a6cbf349b563c379849cb8ca69b0c26b89552 (diff)
downloadCMake-4801fb841f31b6358ee9654c5f85ce3a8be0cd87.zip
CMake-4801fb841f31b6358ee9654c5f85ce3a8be0cd87.tar.gz
CMake-4801fb841f31b6358ee9654c5f85ce3a8be0cd87.tar.bz2
ENH: handle empty lists correctly
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r--Source/cmListCommand.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index 9d71860..efda0e5 100644
--- a/Source/cmListCommand.cxx
+++ b/Source/cmListCommand.cxx
@@ -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