BUG: allow header files to be added to the dsp file
This commit is contained in:
parent
e0d02e10b5
commit
26f5ac3b49
|
@ -228,14 +228,11 @@ void cmDSPWriter::WriteDSPFile(std::ostream& fout,
|
||||||
for(std::vector<cmSourceFile>::iterator i = classes.begin();
|
for(std::vector<cmSourceFile>::iterator i = classes.begin();
|
||||||
i != classes.end(); i++)
|
i != classes.end(); i++)
|
||||||
{
|
{
|
||||||
if(!i->IsAHeaderFileOnly())
|
// Add the file to the list of sources.
|
||||||
{
|
std::string source = i->GetFullPath();
|
||||||
// Add the file to the list of sources.
|
cmSourceGroup& sourceGroup = m_Makefile->FindSourceGroup(source.c_str(),
|
||||||
std::string source = i->GetFullPath();
|
sourceGroups);
|
||||||
cmSourceGroup& sourceGroup = m_Makefile->FindSourceGroup(source.c_str(),
|
sourceGroup.AddSource(source.c_str());
|
||||||
sourceGroups);
|
|
||||||
sourceGroup.AddSource(source.c_str());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// add any custom rules to the source groups
|
// add any custom rules to the source groups
|
||||||
|
|
Loading…
Reference in New Issue