diff options
author | Chris White <white238@llnl.gov> | 2021-10-19 16:09:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 16:09:15 -0700 |
commit | b7d94ebc4f9d3a683219ac5d421496df79aa0467 (patch) | |
tree | 70e261d8180aa5a61e32a27fbfe3a36bf4b06ec7 /var | |
parent | 1b634f05e0d601f7ff82a27e4ff8364ff197f464 (diff) | |
download | spack-b7d94ebc4f9d3a683219ac5d421496df79aa0467.tar.gz spack-b7d94ebc4f9d3a683219ac5d421496df79aa0467.tar.bz2 spack-b7d94ebc4f9d3a683219ac5d421496df79aa0467.tar.xz spack-b7d94ebc4f9d3a683219ac5d421496df79aa0467.zip |
allow camp to use blt package (#26765)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/camp/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/camp/package.py b/var/spack/repos/builtin/packages/camp/package.py index 165fd0284d..fc2d9c9ba0 100644 --- a/var/spack/repos/builtin/packages/camp/package.py +++ b/var/spack/repos/builtin/packages/camp/package.py @@ -29,11 +29,15 @@ class Camp(CMakePackage, CudaPackage, ROCmPackage): depends_on('cub', when='+cuda') + depends_on('blt') + def cmake_args(self): spec = self.spec options = [] + options.append("-DBLT_SOURCE_DIR={0}".format(spec['blt'].prefix)) + if '+cuda' in spec: options.extend([ '-DENABLE_CUDA=ON', |