diff --git a/var/spack/repos/builtin/packages/hipace/package.py b/var/spack/repos/builtin/packages/hipace/package.py index 545ddd5d7e..66313550e3 100644 --- a/var/spack/repos/builtin/packages/hipace/package.py +++ b/var/spack/repos/builtin/packages/hipace/package.py @@ -44,6 +44,7 @@ class Hipace(CMakePackage): depends_on('openpmd-api +mpi', when='+mpi') with when('compute=omp'): depends_on('fftw@3: +openmp') + depends_on('fftw ~mpi', when='~mpi') depends_on('fftw +mpi', when='+mpi') depends_on('pkgconfig', type='build') depends_on('llvm-openmp', when='%apple-clang') diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py index e504149187..245042f349 100644 --- a/var/spack/repos/builtin/packages/warpx/package.py +++ b/var/spack/repos/builtin/packages/warpx/package.py @@ -90,6 +90,7 @@ class Warpx(CMakePackage): depends_on('blaspp +cuda', when='compute=cuda') with when('+psatd compute=omp'): depends_on('fftw@3: +openmp') + depends_on('fftw ~mpi', when='~mpi') depends_on('fftw +mpi', when='+mpi') depends_on('pkgconfig', type='build') with when('+openpmd'):