systemc: new package (#25761)

This commit is contained in:
Nic McDonald 2021-09-08 07:08:03 -06:00 committed by GitHub
parent c3d5232d5b
commit 9ef1dbd0ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,28 @@
# Copyright 2013-2021 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 *
class Systemc(CMakePackage):
"""SystemC: System level modeling, design exploration, performance modeling,
and more."""
homepage = "https://www.accellera.org/downloads/standards/systemc"
url = "https://accellera.org/images/downloads/standards/systemc/systemc-2.3.3.tar.gz"
maintainers = ['nicmcd']
version('2.3.3', sha256='5781b9a351e5afedabc37d145e5f7edec08f3fd5de00ffeb8fa1f3086b1f7b3f')
variant('cxxstd', values=('11', '14', '17', '20'), default='11',
description="C++ standard used during compilation")
def cmake_args(self):
cxxstd = self.spec.variants['cxxstd'].value
return [
self.define('CMAKE_CXX_STANDARD', cxxstd),
self.define('CMAKE_CXX_STANDARD_REQUIRED', 'TRUE'),
]