diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx index 7562833f5..659cb5973 100644 --- a/Source/cmAuxSourceDirectoryCommand.cxx +++ b/Source/cmAuxSourceDirectoryCommand.cxx @@ -32,6 +32,14 @@ bool cmAuxSourceDirectoryCommand::InitialPass(std::vector const& ar std::string tdir = m_Makefile->GetCurrentDirectory(); tdir += "/"; 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 cmDirectory dir; if(dir.Load(tdir.c_str()))