Commit 70650c07 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added cxxstd variant in HEPnOS

parent 0c9efb0e
......@@ -50,6 +50,12 @@ class Hepnos(CMakePackage):
version('develop', branch='master')
version('main', branch='main')
variant('cxxstd',
default='14',
values=('14', '17'),
multi=False,
description='Use the specified C++ standard when building.')
depends_on('mpi')
depends_on('yaml-cpp@develop')
depends_on('boost+serialization')
......@@ -72,4 +78,5 @@ class Hepnos(CMakePackage):
def cmake_args(self):
extra_args = ['-DBUILD_SHARED_LIBS=ON']
extra_args.extend(['-DCMAKE_CXX_COMPILER=%s' % self.spec['mpi'].mpicxx])
extra_args.extend(['-DCMAKE_CXX_STANDARD=%s' % self.spec.variants['cxxstd'].value])
return extra_args
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment