diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/dealii/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/dealii/package.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/dealii/package.py b/var/spack/repos/builtin/packages/dealii/package.py index 1437256bad..17f5cbd75b 100644 --- a/var/spack/repos/builtin/packages/dealii/package.py +++ b/var/spack/repos/builtin/packages/dealii/package.py @@ -460,9 +460,14 @@ class Dealii(CMakePackage, CudaPackage): )) # Threading - options.append(self.define_from_variant( - 'DEAL_II_WITH_THREADS', 'threads' - )) + if spec.satisfies('@9.3.0:'): + options.append(self.define_from_variant( + 'DEAL_II_WITH_TBB', 'threads' + )) + else: + options.append(self.define_from_variant( + 'DEAL_II_WITH_THREADS', 'threads' + )) if '+threads' in spec: if (spec.satisfies('^intel-parallel-studio+tbb')): # deal.II/cmake will have hard time picking up TBB from Intel. |