blob: 4f4c68841fd1c3748741c50845a9ed8ae43f330f (
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
29
30
31
32
|
# 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 *
class Cppgsl(CMakePackage):
"""C++ Guideline Support Library"""
homepage = "https://github.com/Microsoft/GSL"
url = "https://github.com/Microsoft/GSL/archive/v2.0.0.tar.gz"
git = "https://github.com/Microsoft/GSL.git"
version('develop', branch='master')
version('2.0.0', sha256='6cce6fb16b651e62711a4f58e484931013c33979b795d1b1f7646f640cfa9c8e')
version('1.0.0', sha256='9694b04cd78e5b1a769868f19fdd9eea2002de3d4c3a81a1b769209364543c36')
variant('cxxstd',
default='14',
values=('14', '17'),
multi=False,
description='Use the specified C++ standard when building.')
depends_on('cmake@3.1.3:', type='build')
def cmake_args(self):
args = [
'-DGSL_CXX_STANDARD={0}'.format(self.spec.variants['cxxstd'].value)
]
return args
|