ENH: Added cmSystemTools::GlobDirs function to allow wildcards in paths (like /foo/bar/*).

This commit is contained in:
Brad King
2001-09-20 10:54:29 -04:00
parent ee86c59cba
commit 65ef85320a
6 changed files with 51 additions and 7 deletions
+5 -2
View File
@@ -77,7 +77,8 @@ bool cmFindLibraryCommand::InitialPass(std::vector<std::string>& args)
else
{
cmSystemTools::ExpandRegistryValues(args[j]);
path.push_back(args[j]);
// Glob the entry in case of wildcards.
cmSystemTools::GlobDirs(args[j].c_str(), path);
}
}
}
@@ -94,7 +95,9 @@ bool cmFindLibraryCommand::InitialPass(std::vector<std::string>& args)
std::string exp = args[j];
m_Makefile->ExpandVariablesInString(exp);
cmSystemTools::ExpandRegistryValues(exp);
path.push_back(exp);
// Glob the entry in case of wildcards.
cmSystemTools::GlobDirs(exp.c_str(), path);
}
}