Browse Source

Fortran: Add .F extension to Source Files group

While at it, improve source layout of the regex string literal.

Fixes: #8768
Johnny Jazeix 6 years ago
parent
commit
39fbbd6fea
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Source/cmSourceFile.h

+ 2 - 3
Source/cmSourceFile.h

@@ -154,9 +154,8 @@ private:
 #define CM_HEADER_REGEX "\\.(h|hh|h\\+\\+|hm|hpp|hxx|in|txx|inl)$"
 
 #define CM_SOURCE_REGEX                                                       \
-  "\\.(C|M|c|c\\+\\+|cc|cpp|cxx|cu|f|f90|for|fpp|ftn|m|mm|rc|def|r|odl|idl|"  \
-  "hpj"                                                                       \
-  "|bat)$"
+  "\\.(C|F|M|c|c\\+\\+|cc|cpp|cxx|cu|f|f90|for|fpp|ftn|m|mm|"                 \
+  "rc|def|r|odl|idl|hpj|bat)$"
 
 #define CM_PCH_REGEX "cmake_pch\\.(h|hxx)$"