Make DEAL_II_MPI_WITH_CUDA_SUPPORT conditional on mpi package option. (#19279)

This commit is contained in:
David M. Rogers
2020-10-13 14:23:04 -04:00
committed by GitHub
parent 74a30bc624
commit beeab6e1b9

View File

@@ -396,7 +396,8 @@ def cmake_args(self):
])
if '+cuda' in spec:
options.extend([
self.define('DEAL_II_MPI_WITH_CUDA_SUPPORT', True),
self.define('DEAL_II_MPI_WITH_CUDA_SUPPORT',
spec['mpi'].satisfies('+cuda')),
self.define('CUDA_HOST_COMPILER', spec['mpi'].mpicxx)
])