ENH:Reworked CMake to clearer indicate what the variables do

This commit is contained in:
Will Schroeder
2000-11-02 10:24:59 -05:00
parent 366c783f6c
commit 1ae64b11fb
3 changed files with 19 additions and 8 deletions
+11
View File
@@ -21,8 +21,19 @@ void cmClassFile::SetName(const char* name, const char* dir)
pathname += "/";
}
// First try and see whether the listed file can be found
// as is without extensions added on.
pathname += m_ClassName;
std::string hname = pathname;
if(cmSystemTools::FileExists(hname.c_str()))
{
m_HeaderFileOnly = false;
m_FullPath = hname;
return;
}
// Try various extentions
hname = pathname;
hname += ".cxx";
if(cmSystemTools::FileExists(hname.c_str()))
{