summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/systemc/package.py
blob: fdde362bb23518439b2408619f41430f1e67b92d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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'),
        ]