From 1b3710442185196c1495f232050eae0b16ace3c0 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 3 Apr 2003 08:44:49 -0500 Subject: Try differentiating extensions --- Source/cmSystemTools.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" || -- cgit v0.12