diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cmake/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py index a5fb14db91..a625817c85 100644 --- a/var/spack/repos/builtin/packages/cmake/package.py +++ b/var/spack/repos/builtin/packages/cmake/package.py @@ -312,6 +312,13 @@ class Cmake(Package): args = [] self.generator = make + # The Intel compiler isn't able to deal with noinline member functions of + # template classes defined in headers. As such it outputs + # warning #2196: routine is both "inline" and "noinline" + # cmake bootstrap will fail due to the word 'warning'. + if spec.satisfies("%intel@:2021.6.0"): + args.append("CXXFLAGS=-diag-disable=2196") + if self.spec.satisfies("platform=windows"): args.append("-GNinja") self.generator = ninja |