BUG: fix for bug 6197, absolute paths were not supported

This commit is contained in:
Bill Hoffman 2008-01-02 11:08:02 -05:00
parent c7de81f9a6
commit ff04863d9d
1 changed files with 11 additions and 3 deletions

View File

@ -32,9 +32,17 @@ bool cmAuxSourceDirectoryCommand::InitialPass
std::string sourceListValue;
std::string templateDirectory = args[0];
this->Makefile->AddExtraDirectory(templateDirectory.c_str());
std::string tdir = this->Makefile->GetCurrentDirectory();
tdir += "/";
tdir += templateDirectory;
std::string tdir;
if(!cmSystemTools::FileExists(templateDirectory.c_str()))
{
tdir = this->Makefile->GetCurrentDirectory();
tdir += "/";
tdir += templateDirectory;
}
else
{
tdir = templateDirectory;
}
// was the list already populated
const char *def = this->Makefile->GetDefinition(args[1].c_str());