summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefile.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 737e945..4f3e3ba 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -38,9 +38,12 @@ cmMakefile::cmMakefile()
// Setup the default include complaint regular expression (match nothing).
m_ComplainFileRegularExpression = "^$";
// Source and header file extensions that we can handle
+
+ // The "c" extension MUST precede the "C" extension.
+ m_SourceFileExtensions.push_back( "c" );
m_SourceFileExtensions.push_back( "C" );
+
m_SourceFileExtensions.push_back( "M" );
- m_SourceFileExtensions.push_back( "c" );
m_SourceFileExtensions.push_back( "c++" );
m_SourceFileExtensions.push_back( "cc" );
m_SourceFileExtensions.push_back( "cpp" );