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

This commit is contained in:
Andy Cedilnik 2002-12-08 22:35:19 -05:00
parent 39714fb179
commit e7d1a299fb
1 changed files with 1 additions and 0 deletions

View File

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