ENH: do not compile header files

This commit is contained in:
Bill Hoffman 2006-04-20 21:32:42 -04:00
parent cf23679d72
commit 03cee03f67
1 changed files with 2 additions and 1 deletions

View File

@ -1015,7 +1015,8 @@ void cmLocalVisualStudio7Generator::WriteGroup(const cmSourceGroup *sg, cmTarget
std::string compileFlags;
std::string additionalDeps;
sourceName = (*sf)->GetSourceName();
if(sourceName.find("/") != sourceName.npos)
if(!(*sf)->GetPropertyAsBool("HEADER_FILE_ONLY" )
&& sourceName.find("/") != sourceName.npos)
{
cmSystemTools::ReplaceString(sourceName, "/", "_");
sourceName += ".obj";