diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-08-19 19:55:10 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-08-19 19:55:10 (GMT) |
commit | 1629963e7c593e4a746eca4b8b4ab6ba629a44bd (patch) | |
tree | c50fc8f91b8a10f2f806e15c90c72ec56d106435 /Source/cmSystemTools.cxx | |
parent | d632b96841b43e5a5d27e2787018353e7388a423 (diff) | |
download | CMake-1629963e7c593e4a746eca4b8b4ab6ba629a44bd.zip CMake-1629963e7c593e4a746eca4b8b4ab6ba629a44bd.tar.gz CMake-1629963e7c593e4a746eca4b8b4ab6ba629a44bd.tar.bz2 |
BUG: fix for 7045, use gcc for .m
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 2b1cefe..1d2a0cf 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1393,7 +1393,9 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* 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" || + ext == "m" || ext == ".m" + ) { return cmSystemTools::C_FILE_FORMAT; } if ( ext == "C" || ext == ".C" || ext == "M" || ext == ".M" || @@ -1401,7 +1403,6 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext) ext == "cc" || ext == ".cc" || ext == "cpp" || ext == ".cpp" || ext == "cxx" || ext == ".cxx" || - ext == "m" || ext == ".m" || ext == "mm" || ext == ".mm" ) { return cmSystemTools::CXX_FILE_FORMAT; } if ( |