Browse Source

BUG: c extension must come before C.

Brad King 23 years ago
parent
commit
0b6ae58a06
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Source/cmMakefile.cxx

+ 4 - 1
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" );