Merge topic 'intel-fortran-mod-diff'

f699323a Fortran: Fix .mod file comparison for Intel 16 format
This commit is contained in:
Brad King 2016-08-25 09:50:35 -04:00 committed by CMake Topic Stage
commit ce8fadc717
1 changed files with 6 additions and 0 deletions

View File

@ -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