mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 17:39:51 -05:00
ENH: Add relative tag and add test for relative tag
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user