ENH: Classify a file as source or header even when the extension is given

explicitly.
This commit is contained in:
Amitha Perera 2001-12-28 15:54:05 -05:00
parent 8ccd9a9504
commit 4ec2836634
1 changed files with 6 additions and 2 deletions

View File

@ -91,7 +91,11 @@ void cmSourceFile::SetName(const char* name, const char* dir,
}
}
// See if the file is a header file
if(std::find( headerExts.begin(), headerExts.end(), m_SourceExtension ) == headerExts.end())
m_HeaderFileOnly = false;
else
m_HeaderFileOnly = true;
m_FullPath = hname;
return;
}