New package: Taskflow (#19138)
This commit is contained in:
parent
7d4663ea5d
commit
9bd83636e4
35
var/spack/repos/builtin/packages/taskflow/package.py
Normal file
35
var/spack/repos/builtin/packages/taskflow/package.py
Normal file
@ -0,0 +1,35 @@
|
||||
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack import *
|
||||
from spack.compiler import UnsupportedCompilerFlag
|
||||
|
||||
|
||||
class Taskflow(CMakePackage):
|
||||
"""Taskflow helps you quickly write parallel tasks programs in
|
||||
modern C++."""
|
||||
|
||||
homepage = "https://github.com/taskflow/taskflow"
|
||||
url = "https://github.com/taskflow/taskflow/archive/v2.7.0.tar.gz"
|
||||
git = "https://github.com/taskflow/taskflow.git"
|
||||
|
||||
version('master', branch='master')
|
||||
version('2.7.0', sha256='bc2227dcabec86abeba1fee56bb357d9d3c0ef0184f7c2275d7008e8758dfc3e')
|
||||
|
||||
# Compiler must offer C++14 support
|
||||
conflicts('%gcc@:4.8')
|
||||
conflicts('%clang@:3.5')
|
||||
conflicts('%apple-clang@:8.0.0')
|
||||
# untested: conflicts('%intel@:15')
|
||||
# untested: conflicts('%pgi@:14')
|
||||
|
||||
def cmake_args(self):
|
||||
try:
|
||||
self.compiler.cxx14_flag
|
||||
except UnsupportedCompilerFlag:
|
||||
InstallError('Taskflow requires a C++14-compliant C++ compiler')
|
||||
|
||||
args = []
|
||||
return args
|
Loading…
Reference in New Issue
Block a user