diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-08-11 08:21:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 08:21:17 +0200 |
commit | 26ed2776e7cfe0c782d9ccefc3bb20ff4f5d4832 (patch) | |
tree | ab8bd4e7edd491819246ad9d13e7124e71223e1c /var/spack/repos/builtin/packages/rocalution/package.py | |
parent | d88d887ed0fa69ebbd3a6f10e70f1cfa3abcdf6a (diff) | |
download | spack-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.py | 7 |
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 |