summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-06 20:18:55 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-06 20:18:55 (GMT)
commit9c744cfe35060d5d389b5d37d8d48ecf68a3b93f (patch)
tree9ce240dad715447728221f35907d658d8add34a2 /Source/cmFileCommand.cxx
parent54785fafbadae4a1bf8dcf2c43c5f471953b6afa (diff)
downloadCMake-9c744cfe35060d5d389b5d37d8d48ecf68a3b93f.zip
CMake-9c744cfe35060d5d389b5d37d8d48ecf68a3b93f.tar.gz
CMake-9c744cfe35060d5d389b5d37d8d48ecf68a3b93f.tar.bz2
ENH: Handle script mode
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index ee537f3..5b55b23 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -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
{