瀏覽代碼

IntelLLVM: Enable Fortran module rebuild avoidance in Makefile generators

The Makefile generators use an internal `cmake -E cmake_copy_f90_mod`
tool to avoid rebuilding module consumers when the `.mod` content
changes only in a trivial way (e.g. the time it was built).  This is
done with logic specific to each vendor's module file format.  Enable
the "Intel" format support when using the IntelLLVM compiler (ifx) too.

Issue: #22922
Brad King 4 年之前
父節點
當前提交
209b896f2c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmDependsFortran.cxx

+ 1 - 1
Source/cmDependsFortran.cxx

@@ -653,7 +653,7 @@ bool cmDependsFortran::ModulesDiffer(const std::string& modFile,
         return true;
       }
     }
-  } else if (compilerId == "Intel") {
+  } else if (compilerId == "Intel" || compilerId == "IntelLLVM") {
     const char seq[2] = { '\n', '\0' };
     const int seqlen = 2;