BUG: allow header files to be added to the dsp file

This commit is contained in:
Bill Hoffman 2002-01-17 09:28:39 -05:00
parent e0d02e10b5
commit 26f5ac3b49
1 changed files with 5 additions and 8 deletions

View File

@ -228,14 +228,11 @@ void cmDSPWriter::WriteDSPFile(std::ostream& fout,
for(std::vector<cmSourceFile>::iterator i = classes.begin();
i != classes.end(); i++)
{
if(!i->IsAHeaderFileOnly())
{
// Add the file to the list of sources.
std::string source = i->GetFullPath();
cmSourceGroup& sourceGroup = m_Makefile->FindSourceGroup(source.c_str(),
sourceGroups);
sourceGroup.AddSource(source.c_str());
}
// Add the file to the list of sources.
std::string source = i->GetFullPath();
cmSourceGroup& sourceGroup = m_Makefile->FindSourceGroup(source.c_str(),
sourceGroups);
sourceGroup.AddSource(source.c_str());
}
// add any custom rules to the source groups