diff options
author | Denis Davydov <davydden@gmail.com> | 2018-06-11 17:31:27 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-06-11 10:31:27 -0500 |
commit | d943754e923a2c63017fa42519cabcef7dfca4aa (patch) | |
tree | 88d684341eaff60217dfff6c738d2247e4e40bcc | |
parent | 4ec3cb1ddb08e14ba3c2ba169b4c5c47c779740a (diff) | |
download | spack-d943754e923a2c63017fa42519cabcef7dfca4aa.tar.gz spack-d943754e923a2c63017fa42519cabcef7dfca4aa.tar.bz2 spack-d943754e923a2c63017fa42519cabcef7dfca4aa.tar.xz spack-d943754e923a2c63017fa42519cabcef7dfca4aa.zip |
boost: fix cxxstd=default (#8438)
-rw-r--r-- | var/spack/repos/builtin/packages/boost/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index db72c06212..cc774b927b 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -329,7 +329,9 @@ class Boost(Package): # Deal with C++ standard. if spec.satisfies('@1.66:'): - options.append('cxxstd={0}'.format(spec.variants['cxxstd'].value)) + if spec.variants['cxxstd'].value != 'default': + options.append('cxxstd={0}'.format( + spec.variants['cxxstd'].value)) else: # Add to cxxflags for older Boost. flag = self.cxxstd_to_flag(spec.variants['cxxstd'].value) if flag: |