diff options
author | Ben Morgan <drbenmorgan@users.noreply.github.com> | 2020-03-21 18:27:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 13:27:35 -0500 |
commit | bb4e9a7b32f5073ca9dc0a0be6d5ddfbdaf91ade (patch) | |
tree | 4951856f4bb3f3b08af26e3e32e98581f55704e5 /var | |
parent | 25893f154ff185e9df54c8a6e11c0fcbc02c2f20 (diff) | |
download | spack-bb4e9a7b32f5073ca9dc0a0be6d5ddfbdaf91ade.tar.gz spack-bb4e9a7b32f5073ca9dc0a0be6d5ddfbdaf91ade.tar.bz2 spack-bb4e9a7b32f5073ca9dc0a0be6d5ddfbdaf91ade.tar.xz spack-bb4e9a7b32f5073ca9dc0a0be6d5ddfbdaf91ade.zip |
davix: add cxxstd variant (#15593)
* davix: add cxxstd variant
Davix is written in C++, so add this variant to allow dependents to specify
this so a consistent ABI is used.
* davix: fix flake8 errors
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/davix/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/davix/package.py b/var/spack/repos/builtin/packages/davix/package.py index faed2f16fe..4062fb4dae 100644 --- a/var/spack/repos/builtin/packages/davix/package.py +++ b/var/spack/repos/builtin/packages/davix/package.py @@ -19,7 +19,18 @@ class Davix(CMakePackage): version('0.6.9', sha256='fbd97eb5fdf82ca48770d06bf8e2805b35f23255478aa381a9d25a49eb98e348') version('0.6.8', sha256='e1820f4cc3fc44858ae97197a3922cce2a1130ff553b080ba19e06eb8383ddf7') + variant('cxxstd', + default='11', + values=('11', '14', '17'), + multi=False, + description='Use the specified C++ standard when building.') + depends_on('pkgconfig', type='build') depends_on('libxml2') depends_on('libuuid') depends_on('openssl') + + def cmake_args(self): + cmake_args = ['-DCMAKE_CXX_STANDARD={0}'.format( + self.spec.variants['cxxstd'].value)] + return cmake_args |