summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortranParser.y
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-05-22 18:07:24 (GMT)
committerBrad King <brad.king@kitware.com>2012-05-22 18:07:24 (GMT)
commitad2107903a28e8e41b3170ee6089f7c080c49614 (patch)
tree27679f4929b4034f2b9eb75b42e46bd11d87c123 /Source/cmDependsFortranParser.y
parentf2656e4ccb7b05cb1bef17ccf61dc9af7ed3f5fc (diff)
downloadCMake-ad2107903a28e8e41b3170ee6089f7c080c49614.zip
CMake-ad2107903a28e8e41b3170ee6089f7c080c49614.tar.gz
CMake-ad2107903a28e8e41b3170ee6089f7c080c49614.tar.bz2
Fortran: Follow <>-style includes (#13239)
Fortran sources that pass through the C preprocessor may use #include "header" syntax or #include <header> syntax. CMake already follows the former. Teach it to follow the latter.
Diffstat (limited to 'Source/cmDependsFortranParser.y')
-rw-r--r--Source/cmDependsFortranParser.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmDependsFortranParser.y b/Source/cmDependsFortranParser.y
index 00d3327..5681d69 100644
--- a/Source/cmDependsFortranParser.y
+++ b/Source/cmDependsFortranParser.y
@@ -102,6 +102,7 @@ static bool cmDependsFortranParserIsKeyword(const char* word,
%token <string> CPP_TOENDL
%token <number> UNTERMINATED_STRING
%token <string> STRING WORD
+%token <string> CPP_INCLUDE_ANGLE
/*-------------------------------------------------------------------------*/
/* grammar */
@@ -192,6 +193,13 @@ keyword_stmt:
free($1);
free($2);
}
+| CPP_INCLUDE_ANGLE other EOSTMT
+ {
+ cmDependsFortranParser* parser =
+ cmDependsFortran_yyget_extra(yyscanner);
+ cmDependsFortranParser_RuleInclude(parser, $1);
+ free($1);
+ }
| include STRING other EOSTMT
{
cmDependsFortranParser* parser =