diff options
-rw-r--r-- | var/spack/repos/builtin/packages/quantum-espresso/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/quantum-espresso/package.py b/var/spack/repos/builtin/packages/quantum-espresso/package.py index 5e3c39549f..674cb45fa8 100644 --- a/var/spack/repos/builtin/packages/quantum-espresso/package.py +++ b/var/spack/repos/builtin/packages/quantum-espresso/package.py @@ -190,6 +190,12 @@ class QuantumEspresso(CMakePackage): 'See http://quantum-environ.org/about.html') conflicts('+environ', when='+cmake', msg='environ doesn\'t work with CMake') + variant('gipaw', default=False, + description='Builds Gauge-Including Projector Augmented-Waves executable') + with when('+gipaw'): + conflicts('+cmake', msg='gipaw doesn\'t work with CMake') + conflicts('@:6.3', msg='gipaw standard support available for QE 6.3 or grater version only') + # Dependencies not affected by variants depends_on('blas') depends_on('lapack') @@ -528,6 +534,9 @@ class QuantumEspresso(CMakePackage): else: make('all', parallel=parallel_build_on) + if '+gipaw' in spec: + make('gipaw', parallel=False) + if '+environ' in spec: addsonpatch = Executable('./install/addsonpatch.sh') environpatch = Executable('./Environ/patches/environpatch.sh') |