root: Add variant for veccore option (#23237)

This commit is contained in:
Dmitri Smirnov 2021-04-27 22:09:16 -04:00 committed by GitHub
parent 985e101507
commit b23b126013
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,6 +167,8 @@ class Root(CMakePackage):
description='Enable Vc for adding new types for SIMD programming')
variant('vdt', default=True,
description='Enable set of fast and vectorisable math functions')
variant('veccore', default=False,
description='Enable support for VecCore SIMD abstraction library')
variant('vmc', default=False,
description='Enable the Virtual Monte Carlo interface')
variant('x', default=True,
@ -259,6 +261,7 @@ class Root(CMakePackage):
depends_on('unuran', when='+unuran')
depends_on('vc', when='+vc')
depends_on('vdt', when='+vdt')
depends_on('veccore', when='+veccore')
depends_on('libxml2', when='+xml')
depends_on('xrootd', when='+xrootd')
depends_on('xrootd@:4.99.99', when='@:6.22.03 +xrootd')
@ -420,7 +423,7 @@ def cmake_args(self):
define_from_variant('unuran'),
define_from_variant('vc'),
define_from_variant('vdt'),
define('veccore', False),
define_from_variant('veccore'),
define_from_variant('vmc'),
define_from_variant('webui', 'root7'), # requires root7
define_from_variant('x11', 'x'),