Make DEAL_II_MPI_WITH_CUDA_SUPPORT conditional on mpi package option. (#19279)
This commit is contained in:
parent
74a30bc624
commit
beeab6e1b9
1 changed files with 2 additions and 1 deletions
|
@ -396,7 +396,8 @@ def cmake_args(self):
|
||||||
])
|
])
|
||||||
if '+cuda' in spec:
|
if '+cuda' in spec:
|
||||||
options.extend([
|
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)
|
self.define('CUDA_HOST_COMPILER', spec['mpi'].mpicxx)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue