diff options
author | Will Schroeder <will.schroeder@kitware.com> | 2000-11-02 15:24:59 (GMT) |
---|---|---|
committer | Will Schroeder <will.schroeder@kitware.com> | 2000-11-02 15:24:59 (GMT) |
commit | 1ae64b11fb358ead554105617f8a4feebb1dc3d1 (patch) | |
tree | 80cf3d9df59e0e2d4f34eb395044241f5f107d75 /Source/cmClassFile.cxx | |
parent | 366c783f6c6b6987a2425f38e51b53e74bb891e0 (diff) | |
download | CMake-1ae64b11fb358ead554105617f8a4feebb1dc3d1.zip CMake-1ae64b11fb358ead554105617f8a4feebb1dc3d1.tar.gz CMake-1ae64b11fb358ead554105617f8a4feebb1dc3d1.tar.bz2 |
ENH:Reworked CMake to clearer indicate what the variables do
Diffstat (limited to 'Source/cmClassFile.cxx')
-rw-r--r-- | Source/cmClassFile.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmClassFile.cxx b/Source/cmClassFile.cxx index 6c219ed..21af889 100644 --- a/Source/cmClassFile.cxx +++ b/Source/cmClassFile.cxx @@ -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())) { |