bug fix for aux src dirs

This commit is contained in:
Ken Martin 2002-06-28 09:21:30 -04:00
parent c24d201c39
commit 5ba65d0aa1
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,14 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& ar
std::string tdir = m_Makefile->GetCurrentDirectory(); std::string tdir = m_Makefile->GetCurrentDirectory();
tdir += "/"; tdir += "/";
tdir += templateDirectory; tdir += templateDirectory;
// was the list already populated
const char *def = m_Makefile->GetDefinition(args[1].c_str());
if (def)
{
sourceListValue = def;
}
// Load all the files in the directory // Load all the files in the directory
cmDirectory dir; cmDirectory dir;
if(dir.Load(tdir.c_str())) if(dir.Load(tdir.c_str()))