allow camp to use blt package (#26765)

This commit is contained in:
Chris White 2021-10-19 16:09:15 -07:00 committed by GitHub
parent 1b634f05e0
commit b7d94ebc4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',