Browse Source

Fix bug in globbing. Now it actually uses only files or directories that result in globbing not the ones that were is the vector before

Andy Cedilnik 23 years ago
parent
commit
e7d1a299fb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmSystemTools.cxx

+ 1 - 0
Source/cmSystemTools.cxx

@@ -2291,6 +2291,7 @@ bool cmSystemTools::SimpleGlob(const std::string& glob,
                                std::vector<std::string>& files, 
                                int type /* = 0 */)
 {
+  files.clear();
   if ( glob[glob.size()-1] != '*' )
     {
     return false;