diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index b5ebed2dd..40fafe22f 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2291,6 +2291,7 @@ bool cmSystemTools::SimpleGlob(const std::string& glob, std::vector& files, int type /* = 0 */) { + files.clear(); if ( glob[glob.size()-1] != '*' ) { return false;