diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx index 397c691de..005527678 100644 --- a/Source/cmDSPMakefile.cxx +++ b/Source/cmDSPMakefile.cxx @@ -163,6 +163,8 @@ void cmDSPMakefile::WriteDSPFile(std::ostream& fout, const char *libName, cmTarget &target) { + target.GenerateSourceFilesFromSourceLists(*m_Makefile); + // Write the DSP file's header. this->WriteDSPHeader(fout, libName, target); @@ -170,7 +172,6 @@ void cmDSPMakefile::WriteDSPFile(std::ostream& fout, std::vector sourceGroups = m_Makefile->GetSourceGroups(); // get the classes from the source lists then add them to the groups - target.GenerateSourceFilesFromSourceLists(*m_Makefile); std::vector classes = target.GetSourceFiles(); for(std::vector::iterator i = classes.begin(); i != classes.end(); i++) diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 397c691de..005527678 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -163,6 +163,8 @@ void cmDSPMakefile::WriteDSPFile(std::ostream& fout, const char *libName, cmTarget &target) { + target.GenerateSourceFilesFromSourceLists(*m_Makefile); + // Write the DSP file's header. this->WriteDSPHeader(fout, libName, target); @@ -170,7 +172,6 @@ void cmDSPMakefile::WriteDSPFile(std::ostream& fout, std::vector sourceGroups = m_Makefile->GetSourceGroups(); // get the classes from the source lists then add them to the groups - target.GenerateSourceFilesFromSourceLists(*m_Makefile); std::vector classes = target.GetSourceFiles(); for(std::vector::iterator i = classes.begin(); i != classes.end(); i++)