From ff04863d9d2edd2513a9a3764aa99e5a388be6fa Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 2 Jan 2008 11:08:02 -0500 Subject: BUG: fix for bug 6197, absolute paths were not supported --- Source/cmAuxSourceDirectoryCommand.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx index 705aad7..321dcef 100644 --- a/Source/cmAuxSourceDirectoryCommand.cxx +++ b/Source/cmAuxSourceDirectoryCommand.cxx @@ -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()); -- cgit v0.12