diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-04-03 13:44:49 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-04-03 13:44:49 (GMT) |
commit | 1b3710442185196c1495f232050eae0b16ace3c0 (patch) | |
tree | 4ff15928114be00d0153fb1a1efbb05e59e0e079 | |
parent | a5ea72df8856aada1ac9cd9916466a078a6ff9d3 (diff) | |
download | CMake-1b3710442185196c1495f232050eae0b16ace3c0.zip CMake-1b3710442185196c1495f232050eae0b16ace3c0.tar.gz CMake-1b3710442185196c1495f232050eae0b16ace3c0.tar.bz2 |
Try differentiating extensions
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 085849a..fc39f27 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2282,7 +2282,8 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext) { return cmSystemTools::NO_FILE_FORMAT; } - std::string ext = cmSystemTools::LowerCase(cext); + //std::string ext = cmSystemTools::LowerCase(cext); + std::string ext = cext; if ( ext == "c" || ext == ".c" ) { return cmSystemTools::C_FILE_FORMAT; } if ( ext == "C" || ext == ".C" || @@ -2296,6 +2297,7 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext) ) { return cmSystemTools::CXX_FILE_FORMAT; } if ( ext == "java" || ext == ".java" ) { return cmSystemTools::JAVA_FILE_FORMAT; } if ( + ext == "H" || ext == ".H" || ext == "h" || ext == ".h" || ext == "h++" || ext == ".h++" || ext == "hm" || ext == ".hm" || |