summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-17 15:35:12 (GMT)
committerBrad King <brad.king@kitware.com>2021-11-17 15:41:30 (GMT)
commit209b896f2c5e7c12e5a75a572469517a298081b2 (patch)
treee315dc4f56d14fcb9075efacc55b8b787ce06e63
parent09ef62fd988826b32f6d6e83992325d35d2f4b5b (diff)
downloadCMake-209b896f2c5e7c12e5a75a572469517a298081b2.zip
CMake-209b896f2c5e7c12e5a75a572469517a298081b2.tar.gz
CMake-209b896f2c5e7c12e5a75a572469517a298081b2.tar.bz2
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
-rw-r--r--Source/cmDependsFortran.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx
index 1a06f31..74b5ddd 100644
--- a/Source/cmDependsFortran.cxx
+++ b/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;