summaryrefslogtreecommitdiffstats
path: root/Source/cmFortranParser.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-13 18:34:56 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-14 15:23:02 (GMT)
commit72057d9c1582f4b6dec66cd0675860c4c335636e (patch)
treea8ef46af1c9bc0c90f2569393aed93f2b4d0f74f /Source/cmFortranParser.h
parent7ae329e2ed84f62165cb11794ad85c6c43dbd7dc (diff)
downloadCMake-72057d9c1582f4b6dec66cd0675860c4c335636e.zip
CMake-72057d9c1582f4b6dec66cd0675860c4c335636e.tar.gz
CMake-72057d9c1582f4b6dec66cd0675860c4c335636e.tar.bz2
Fortran: Thread compiler id through to internal Fortran parser
Diffstat (limited to 'Source/cmFortranParser.h')
-rw-r--r--Source/cmFortranParser.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmFortranParser.h b/Source/cmFortranParser.h
index cc5c113..3fbf552 100644
--- a/Source/cmFortranParser.h
+++ b/Source/cmFortranParser.h
@@ -128,9 +128,14 @@ struct cmFortranFile
bool LastCharWasNewline;
};
+struct cmFortranCompiler
+{
+ std::string Id;
+};
+
struct cmFortranParser_s
{
- cmFortranParser_s(std::vector<std::string> includes,
+ cmFortranParser_s(cmFortranCompiler fc, std::vector<std::string> includes,
std::set<std::string> defines, cmFortranSourceInfo& info);
~cmFortranParser_s();
@@ -141,6 +146,9 @@ struct cmFortranParser_s
std::string SModName(std::string const& mod_name,
std::string const& sub_name) const;
+ // What compiler.
+ cmFortranCompiler Compiler;
+
// The include file search path.
std::vector<std::string> IncludePath;