ENH: Handle script mode
This commit is contained in:
parent
54785fafba
commit
9c744cfe35
|
@ -170,6 +170,9 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
|||
if ( !cmsys::SystemTools::FileIsFullPath(i->c_str()) )
|
||||
{
|
||||
std::string expr = m_Makefile->GetCurrentDirectory();
|
||||
// Handle script mode
|
||||
if ( expr.size() > 0 )
|
||||
{
|
||||
expr += "/" + *i;
|
||||
g.FindFiles(expr);
|
||||
}
|
||||
|
@ -177,6 +180,11 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
|||
{
|
||||
g.FindFiles(*i);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
g.FindFiles(*i);
|
||||
}
|
||||
std::vector<std::string>::size_type cc;
|
||||
std::vector<std::string>& files = g.GetFiles();
|
||||
for ( cc = 0; cc < files.size(); cc ++ )
|
||||
|
|
Loading…
Reference in New Issue