diff options
author | Christoph Junghans <christoph.junghans@gmail.com> | 2017-09-18 16:36:42 -0600 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-09-18 15:36:42 -0700 |
commit | 1098d78d2a7440651f99d177b4e7a62e6e1158d5 (patch) | |
tree | 2e874faf7eb7b64fdb08d26a63aec924ce94428a /var | |
parent | 6d8614f6715fa61c6846f4c202cb51c58d67ac71 (diff) | |
download | spack-1098d78d2a7440651f99d177b4e7a62e6e1158d5.tar.gz spack-1098d78d2a7440651f99d177b4e7a62e6e1158d5.tar.bz2 spack-1098d78d2a7440651f99d177b4e7a62e6e1158d5.tar.xz spack-1098d78d2a7440651f99d177b4e7a62e6e1158d5.zip |
qmd-progress: add shared variant (#5381)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/qmd-progress/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qmd-progress/package.py b/var/spack/repos/builtin/packages/qmd-progress/package.py index 09bb45e1a9..2a3a406840 100644 --- a/var/spack/repos/builtin/packages/qmd-progress/package.py +++ b/var/spack/repos/builtin/packages/qmd-progress/package.py @@ -39,6 +39,7 @@ class QmdProgress(CMakePackage): variant('graphlib', default=False, description='Build with Metis Suppport') variant('mpi', default=True, description='Build with MPI Support') + variant('shared', default=True, description='Build shared libs') depends_on('bml') depends_on('mpi', when='+mpi') @@ -47,6 +48,10 @@ class QmdProgress(CMakePackage): def cmake_args(self): spec = self.spec args = ['-DCMAKE_Fortran_FLAGS=-ffree-line-length-none'] + if '+shared' in spec: + args.append('-DBUILD_SHARED_LIBS=ON') + else: + args.append('-DBUILD_SHARED_LIBS=OFF') if '+mpi' in spec: args.append('-DPROGRESS_MPI=yes') args.append('-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc) |