BUG: fix bug where custom command generated .h files do not get the header_file_only flag set

This commit is contained in:
Bill Hoffman 2004-08-09 13:03:41 -04:00
parent 26a6b4bc01
commit 63e6237600

View File

@ -1968,8 +1968,10 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
if ( ext.length() && ext[0] == '.' )
{
ext = ext.substr(1);
}
file.SetName(name_no_ext.c_str(), path.c_str(), ext.c_str(), false);
}
bool headerFile = !(std::find( m_HeaderFileExtensions.begin(), m_HeaderFileExtensions.end(), ext ) ==
m_HeaderFileExtensions.end());
file.SetName(name_no_ext.c_str(), path.c_str(), ext.c_str(), headerFile);
}
else
{