summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:03:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:03:19 (GMT)
commitd41f97a5e6fb47399cff87aa96979f6b7196a763 (patch)
treecbcbed2a7a5d08927088e5fc072dab25aa0af10a /Source/cmFileCommand.cxx
parent9dbf4438dcf2d08477b140edc0a15927377699d3 (diff)
downloadCMake-d41f97a5e6fb47399cff87aa96979f6b7196a763.zip
CMake-d41f97a5e6fb47399cff87aa96979f6b7196a763.tar.gz
CMake-d41f97a5e6fb47399cff87aa96979f6b7196a763.tar.bz2
ENH: Add relative tag and add test for relative tag
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index a93e517..02b6913 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -210,6 +210,17 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
bool first = true;
for ( ; i != args.end(); ++i )
{
+ if ( *i == "RELATIVE" )
+ {
+ ++i; // skip RELATIVE
+ if ( i == args.end() )
+ {
+ this->SetError("GLOB requires a directory after the RELATIVE tag");
+ return false;
+ }
+ g.SetRelative(i->c_str());
+ ++i;
+ }
if ( !cmsys::SystemTools::FileIsFullPath(i->c_str()) )
{
std::string expr = this->Makefile->GetCurrentDirectory();