From 4801fb841f31b6358ee9654c5f85ce3a8be0cd87 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 23 Apr 2008 09:56:54 -0400 Subject: ENH: handle empty lists correctly --- Source/cmListCommand.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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& 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 -- cgit v0.12