From b23b126013e0579b7a524dcd442f57f4be32480d Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Tue, 27 Apr 2021 22:09:16 -0400 Subject: root: Add variant for veccore option (#23237) --- var/spack/repos/builtin/packages/root/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index df260e26fd..455e87263f 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -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 @@ class Root(CMakePackage): 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'), -- cgit v1.2.3-70-g09d2