summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-29 18:17:42 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-29 18:17:42 (GMT)
commit3344ce9197926f262fa4eed30f085d72b08af744 (patch)
treebdf69c8d44f3f03a2b8609f7d4f11235beae6e59 /Source/cmSourceFile.h
parent19aafdb35526cbb2cf6b16cd8e264cb06cc15650 (diff)
downloadCMake-3344ce9197926f262fa4eed30f085d72b08af744.zip
CMake-3344ce9197926f262fa4eed30f085d72b08af744.tar.gz
CMake-3344ce9197926f262fa4eed30f085d72b08af744.tar.bz2
ENH: In cmSourceFile::GetLanguage use the file extension (if not ambiguous) to determine the language without requiring the source file to exist.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 1eca56e..59cb7db 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -116,6 +116,7 @@ private:
bool FindFullPath();
bool TryFullPath(const char* tryPath, const char* ext);
void CheckExtension();
+ void CheckLanguage(std::string const& ext);
std::vector<std::string> Depends;
};