summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/rocalution/package.py
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-08-11 08:21:17 +0200
committerGitHub <noreply@github.com>2021-08-11 08:21:17 +0200
commit26ed2776e7cfe0c782d9ccefc3bb20ff4f5d4832 (patch)
treeab8bd4e7edd491819246ad9d13e7124e71223e1c /var/spack/repos/builtin/packages/rocalution/package.py
parentd88d887ed0fa69ebbd3a6f10e70f1cfa3abcdf6a (diff)
downloadspack-26ed2776e7cfe0c782d9ccefc3bb20ff4f5d4832.tar.gz
spack-26ed2776e7cfe0c782d9ccefc3bb20ff4f5d4832.tar.bz2
spack-26ed2776e7cfe0c782d9ccefc3bb20ff4f5d4832.tar.xz
spack-26ed2776e7cfe0c782d9ccefc3bb20ff4f5d4832.zip
Add __skip_rocmclang to more rocm packages for cmake 3.21 (#25328)
Diffstat (limited to 'var/spack/repos/builtin/packages/rocalution/package.py')
-rw-r--r--var/spack/repos/builtin/packages/rocalution/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/rocalution/package.py b/var/spack/repos/builtin/packages/rocalution/package.py
index 2517847d41..d51539a6c5 100644
--- a/var/spack/repos/builtin/packages/rocalution/package.py
+++ b/var/spack/repos/builtin/packages/rocalution/package.py
@@ -60,8 +60,13 @@ class Rocalution(CMakePackage):
filter_file(match, substitute, *files, **kwargs)
def cmake_args(self):
- return [
+ args = [
self.define('SUPPORT_HIP', 'ON'),
self.define('SUPPORT_MPI', 'OFF'),
self.define('BUILD_CLIENTS_SAMPLES', 'OFF')
]
+
+ if self.spec.satisfies('^cmake@3.21:'):
+ args.append(self.define('__skip_rocmclang', 'ON'))
+
+ return args