diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/rocprim/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/rocprim/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/rocprim/package.py b/var/spack/repos/builtin/packages/rocprim/package.py index ba84bdec23..6c36ba055e 100644 --- a/var/spack/repos/builtin/packages/rocprim/package.py +++ b/var/spack/repos/builtin/packages/rocprim/package.py @@ -41,10 +41,15 @@ class Rocprim(CMakePackage): env.set('CXX', self.spec['hip'].hipcc) def cmake_args(self): - return [ + args = [ self.define('CMAKE_MODULE_PATH', self.spec['hip'].prefix.cmake), self.define('ONLY_INSTALL', 'ON'), self.define('BUILD_TEST', 'OFF'), self.define('BUILD_BENCHMARK', 'OFF'), self.define('BUILD_EXAMPLE', 'OFF') ] + + if self.spec.satisfies('^cmake@3.21:'): + args.append(self.define('__skip_rocmclang', 'ON')) + + return args |