summaryrefslogtreecommitdiff
path: root/Source/cmDependsFortran.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-25 09:50:35 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-25 09:50:35 -0400
commitce8fadc717b001b39b3208f8069cb0048073f975 (patch)
tree8113ddc523950bbc36b7544cd9b7d45c1a11b0bf /Source/cmDependsFortran.cxx
parentd1ee1cb81351cc9bd84cd7c3b755d0c4a5e45f6f (diff)
parentf699323ade84bb672ed0998de73c6f0333981bc1 (diff)
downloadcmake-ce8fadc717b001b39b3208f8069cb0048073f975.tar.gz
Merge topic 'intel-fortran-mod-diff'
f699323a Fortran: Fix .mod file comparison for Intel 16 format
Diffstat (limited to 'Source/cmDependsFortran.cxx')
-rw-r--r--Source/cmDependsFortran.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx
index 5c863f0b47..c57b558054 100644
--- a/Source/cmDependsFortran.cxx
+++ b/Source/cmDependsFortran.cxx
@@ -678,6 +678,12 @@ bool cmDependsFortran::ModulesDiffer(const char* modFile,
const char seq[2] = { '\n', '\0' };
const int seqlen = 2;
+ // Skip the leading byte which appears to be a version number.
+ // We do not need to check for an error because the sequence search
+ // below will fail in that case.
+ finModFile.get();
+ finStampFile.get();
+
if (!cmFortranStreamContainsSequence(finModFile, seq, seqlen)) {
// The module is of unexpected format. Assume it is different.
std::cerr << compilerId << " fortran module " << modFile