diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index 9d71860dd..efda0e5a5 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