mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-06 06:38:37 -06:00
ENH: Handle script mode
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user