From 0b6ae58a0647c3cf496a1cc0236e036d3ac076b1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 14 Mar 2003 10:54:53 -0500 Subject: BUG: c extension must come before C. --- Source/cmMakefile.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" ); -- cgit v0.12