ENH: Handle script mode

This commit is contained in:
Andy Cedilnik 2004-02-06 15:18:55 -05:00
parent 54785fafba
commit 9c744cfe35
1 changed files with 10 additions and 2 deletions

View File

@ -170,8 +170,16 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
if ( !cmsys::SystemTools::FileIsFullPath(i->c_str()) )
{
std::string expr = m_Makefile->GetCurrentDirectory();
expr += "/" + *i;
g.FindFiles(expr);
// Handle script mode
if ( expr.size() > 0 )
{
expr += "/" + *i;
g.FindFiles(expr);
}
else
{
g.FindFiles(*i);
}
}
else
{